Changeset 18453 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2022-05-19T00:17:54+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.