Changeset 5044 in josm for trunk/src/org


Ignore:
Timestamp:
2012-03-05T20:21:35+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #7471 - No suitable download task for XAPI queries with * for object type

File:
1 edited

Legend:

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

    r5024 r5044  
    8080    public boolean acceptsUrl(String url) {
    8181        return url != null && (
    82                 url.matches("http://.*/api/0.6/(map|nodes?|ways?|relations?).*")    // OSM API 0.6
     82                url.matches("http://.*/api/0.6/(map|nodes?|ways?|relations?|\\*).*")// OSM API 0.6 and XAPI
    8383             || url.matches("http://.*/interpreter\\?data=.*")                      // Overpass API
    8484             || url.matches("http://.*/xapi\\?.*\\[@meta\\].*")                     // Overpass API XAPI compatibility layer
Note: See TracChangeset for help on using the changeset viewer.