Changeset 18453 in josm
- Timestamp:
- 2022-05-19T00:17:54+02:00 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ivy.xml
r18434 r18453 31 31 <dependency conf="api->default" org="com.drewnoakes" name="metadata-extractor" rev="2.17.0" transitive="false"/> 32 32 <dependency conf="api->default" org="com.formdev" name="svgSalamander" rev="1.1.3"/> 33 <dependency conf="api->default" org="ch.poole" name="OpeningHoursParser" rev="0.2 6.0"/>33 <dependency conf="api->default" org="ch.poole" name="OpeningHoursParser" rev="0.27.0"/> 34 34 <dependency conf="api->default" org="oauth.signpost" name="signpost-core" rev="2.1.1"/> 35 35 <dependency conf="api->default" org="org.webjars.npm" name="tag2link" rev="2021.3.21"/> -
trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java
r18208 r18453 103 103 try { 104 104 final boolean strict = PREF_STRICT_MODE.get(); 105 final List<Rule> rules = new OpeningHoursParser(new StringReader(value)).rules(strict); 105 final List<Rule> rules = new OpeningHoursParser(new StringReader(value)).rules(strict, false); 106 106 prettifiedValue = Util.rulesToOpeningHoursString(rules); 107 107 if (!Objects.equals(value, prettifiedValue) && !strict) { 108 108 // parse again in strict mode for detailed message 109 new OpeningHoursParser(new StringReader(value)).rules(true); 109 new OpeningHoursParser(new StringReader(value)).rules(true, false); 110 110 } 111 111 } catch (OpeningHoursParseException e) {
Note:
See TracChangeset
for help on using the changeset viewer.