Ignore:
Timestamp:
2015-04-14T23:10:19+02:00 (9 years ago)
Author:
simon04
Message:

Download objects: prefill ids from copied objects

The syntax from CopyAction is e.g. node 123 and has not been parsed yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/SimplePrimitiveId.java

    r7005 r8194  
    1212    private final OsmPrimitiveType type;
    1313
    14     public static final Pattern ID_PATTERN = Pattern.compile("((n(ode)?|w(ay)?|r(el(ation)?)?)/?)(\\d+)");
     14    public static final Pattern ID_PATTERN = Pattern.compile("((n(ode)?|w(ay)?|r(el(ation)?)?)[ /]?)(\\d+)");
    1515
    1616    public SimplePrimitiveId(long id, OsmPrimitiveType type) {
Note: See TracChangeset for help on using the changeset viewer.