Changeset 5240 in josm
- Timestamp:
- May 14, 2012 3:04:43 PM (13 months ago)
- File:
-
- 1 edited
-
trunk/src/org/openstreetmap/josm/Main.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r5234 r5240 639 639 if(s.startsWith("http:")) return DownloadParamType.httpUrl; 640 640 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*"; 642 642 if(s.matches(coorPattern+"(,"+coorPattern+"){3}")) return DownloadParamType.bounds; 643 643 // everything else must be a file name
Note: See TracChangeset
for help on using the changeset viewer.
