Changeset 5240 in josm for trunk


Ignore:
Timestamp:
2012-05-14T15:04:43+02:00 (7 years ago)
Author:
simon04
Message:

fix #7687 - make --download= work with signs in bounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r5234 r5240  
    639639        if(s.startsWith("http:")) return DownloadParamType.httpUrl;
    640640        if(s.startsWith("file:")) return DownloadParamType.fileUrl;
    641         String coorPattern = "\\s*[0-9]+(\\.[0-9]+)?\\s*";
     641        String coorPattern = "\\s*[+-]?[0-9]+(\\.[0-9]+)?\\s*";
    642642        if(s.matches(coorPattern+"(,"+coorPattern+"){3}")) return DownloadParamType.bounds;
    643643        // everything else must be a file name
Note: See TracChangeset for help on using the changeset viewer.