Changeset 6647 in josm for trunk/src/org/openstreetmap/josm
- Timestamp:
- 2014-01-06T18:42:37+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Lanes.java
r6606 r6647 31 31 32 32 static int getLanesCount(String value) { 33 return value.isEmpty() ? 0 : value. split("\\|").length;33 return value.isEmpty() ? 0 : value.replaceAll("[^|]", "").length() + 1; 34 34 } 35 35
Note:
See TracChangeset
for help on using the changeset viewer.