Changeset 14396 in josm


Ignore:
Timestamp:
2018-11-01T18:47:12+01:00 (5 years ago)
Author:
Don-vip
Message:

allow to download shorter URLs like http://osm.org/node/941759490

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmIdTask.java

    r13927 r14396  
    2424public class DownloadOsmIdTask extends DownloadOsmTask {
    2525
    26     private static final String URL_ID_PATTERN = "https?://www\\.(osm|openstreetmap)\\.org/(node|way|relation)/(\\p{Digit}+).*";
     26    private static final String URL_ID_PATTERN = "https?://(?:www\\.)?(osm|openstreetmap)\\.org/(node|way|relation)/(\\p{Digit}+).*";
    2727
    2828    @Override
Note: See TracChangeset for help on using the changeset viewer.