Ignore:
Timestamp:
2015-06-10T21:00:48+02:00 (5 years ago)
Author:
simon04
Message:

Correctly parse tab-separated tags

… by using non-greedy regular expression for prefix to ignore

File:
1 edited

Legend:

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

    r8470 r8482  
    203203        // Format
    204204        // tag1\tval1\ntag2\tval2\n
    205         tags = readTagsByRegexp(buf, "[\\r\\n]+", ".*([a-zA-Z0-9:_]+).*\\t(.*?)", false);
     205        tags = readTagsByRegexp(buf, "[\\r\\n]+", ".*?([a-zA-Z0-9:_]+).*\\t(.*?)", false);
    206206                // try "tag\tvalue\n" format
    207207        if (tags!=null) return tags;
Note: See TracChangeset for help on using the changeset viewer.