trim period text from document before comparing to period contants

This commit is contained in:
Joe Banks 2015-07-21 17:23:24 -05:00
parent 772d4f7aeb
commit a1a4b1163c

View file

@ -47,7 +47,7 @@ public class SyModuleParser implements ModuleParser {
final Element updatePeriod = syndRoot.getChild("updatePeriod", getDCNamespace()); final Element updatePeriod = syndRoot.getChild("updatePeriod", getDCNamespace());
if (updatePeriod != null) { if (updatePeriod != null) {
foundSomething = true; foundSomething = true;
sm.setUpdatePeriod(updatePeriod.getText()); sm.setUpdatePeriod(updatePeriod.getText().trim());
} }
final Element updateFrequency = syndRoot.getChild("updateFrequency", getDCNamespace()); final Element updateFrequency = syndRoot.getChild("updateFrequency", getDCNamespace());