Changeset 5240 in josm
- Timestamp:
- 2012-05-14T15:04:43+02:00 (12 years ago)
- File:
-
- 1 edited
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.