Ignore:
Timestamp:
2016-07-25T14:58:28+02:00 (4 years ago)
Author:
simon04
Message:

fix #13201: Support Geo URLs with negative values

File:
1 edited

Legend:

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

    r10630 r10635  
    1515public final class GeoUrlToBounds {
    1616
    17     public static final Pattern PATTERN = Pattern.compile("geo:(?<lat>[0-9.]+),(?<lon>[0-9.]+)(\\?z=(?<zoom>[0-9]+))?");
     17    public static final Pattern PATTERN = Pattern.compile("geo:(?<lat>[+-]?[0-9.]+),(?<lon>[+-]?[0-9.]+)(\\?z=(?<zoom>[0-9]+))?");
    1818
    1919    private GeoUrlToBounds() {
Note: See TracChangeset for help on using the changeset viewer.