Merge pull request #206 from freemarmoset/trim_period

trim period text from document before comparing to period constants
This commit is contained in:
David M. Johnson 2015-11-22 15:52:58 -05:00
commit 8cac90db66

View file

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