Changeset 13226 in josm for trunk/src/org
- Timestamp:
- 2017-12-18T23:25:29+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r12846 r13226 332 332 } 333 333 334 private static String fixLow(String s) { 335 return s.replaceAll("[\\x00-\\x1F]", ""); 336 } 337 334 338 private static Set<String> getPresetValues(String key) { 335 339 Set<String> res = TaggingPresets.getPresetValues(key); … … 437 441 .message(tr("Tag value contains character with code less than 0x20"), s, key) 438 442 .primitives(p) 443 .fix(() -> new ChangePropertyCommand(p, key, fixLow(value))) 439 444 .build()); 440 445 withErrors.put(p, "ICV"); … … 444 449 .message(tr("Tag key contains character with code less than 0x20"), s, key) 445 450 .primitives(p) 451 .fix(() -> new ChangePropertyKeyCommand(p, key, fixLow(key))) 446 452 .build()); 447 453 withErrors.put(p, "ICK");
Note:
See TracChangeset
for help on using the changeset viewer.