Changeset 35238 in osm for applications/editors


Ignore:
Timestamp:
2019-11-27T22:52:06+01:00 (5 years ago)
Author:
donvip
Message:

fix #josm18361 - Recognize typographical quotes (’, ”) in Lat Lon tool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/latlon/LatLonDialog.java

    r34456 r35238  
    6363    private static final String SEC = "\u2033";
    6464
     65    // typographical quotes - see #18361
     66    private static final String MIN_TYPO = "\u2019";
     67    private static final String SEC_TYPO = "\u201D";
     68
    6569    private static final char N_TR = LatLonParser.NORTH.charAt(0);
    6670    private static final char S_TR = LatLonParser.SOUTH.charAt(0);
     
    7276            + "([+|-]?\\d+)|"                   // (2)
    7377            + "("+DEG+"|o|deg)|"                // (3)
    74             + "('|"+MIN+"|min)|"                // (4)
    75             + "(\"|"+SEC+"|sec)|"               // (5)
     78            + "('|"+MIN+'|'+MIN_TYPO+"|min)|"   // (4)
     79            + "(\"|"+SEC+'|'+SEC_TYPO+"|sec)|"  // (5)
    7680            + "(,|;)|"                          // (6)
    7781            + "([NSEW"+N_TR+S_TR+E_TR+W_TR+"])|"// (7)
Note: See TracChangeset for help on using the changeset viewer.