Changeset 13390 in josm for trunk/src


Ignore:
Timestamp:
2018-02-07T02:01:12+01:00 (22 months ago)
Author:
Don-vip
Message:

fix #15869 - make SimilarNamedWays check aware of all Unicode numbers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java

    r12390 r13390  
    5454        // FIXME: hardcode these rules for now. Replace them with preferences later
    5555        // See https://josm.openstreetmap.de/ticket/3733#comment:19
    56         addRegExprRule("\\d+", "0"); // Highway 66
     56        addRegExprRule("\\pN+", "0"); // Unicode numbers: matches "Highway 66" but also persian numbers
    5757        addRegExprRule("\\d+(st|nd|rd|th)", "0st"); // 3rd Ave
    5858        addRegExprRule("^[A-Z] ", "X"); // E Street
Note: See TracChangeset for help on using the changeset viewer.