Changeset 10735 in josm for trunk/src


Ignore:
Timestamp:
2016-08-05T19:44:17+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #13264 - more lenient TMS url regex to allow - zoom separator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r10577 r10735  
    685685        defaultMinZoom = 0;
    686686        for (ImageryType type : ImageryType.values()) {
    687             Matcher m = Pattern.compile(type.getTypeString()+"(?:\\[(?:(\\d+),)?(\\d+)\\])?:(.*)").matcher(url);
     687            Matcher m = Pattern.compile(type.getTypeString()+"(?:\\[(?:(\\d+)[,-])?(\\d+)\\])?:(.*)").matcher(url);
    688688            if (m.matches()) {
    689689                this.url = m.group(3);
Note: See TracChangeset for help on using the changeset viewer.