- Timestamp:
- 2014-12-10T23:36:01+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r7783 r7786 204 204 // Format 205 205 // tag1\tval1\ntag2\tval2\n 206 tags = readTagsByRegexp(buf, "[\\r\\n]+", " ([a-zA-Z0-9:_]+)\\t(.*?)", false);206 tags = readTagsByRegexp(buf, "[\\r\\n]+", ".*([a-zA-Z0-9:_]+).*\\t(.*?)", false); 207 207 // try "tag\tvalue\n" format 208 208 if (tags!=null) return tags; … … 213 213 // a = "b=c" is OK 214 214 // a = b=c - this method of parsing fails intentionally 215 tags = readTagsByRegexp(buf, "[\\n\\t\\r]+", "( [a-zA-Z0-9:_]+)=(.*?)", true);215 tags = readTagsByRegexp(buf, "[\\n\\t\\r]+", "(.*?)=(.*?)", true); 216 216 // try format t1=v1\n t2=v2\n ... 217 217 if (tags!=null) return tags;
Note:
See TracChangeset
for help on using the changeset viewer.