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