Changeset 14331 in josm for trunk/src/com/kitfox/svg/xml
- Timestamp:
- 2018-10-14T17:02:51+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/kitfox/svg/xml/XMLParseUtil.java
r11525 r14331 56 56 static final Matcher fpMatch = Pattern.compile("([-+]?((\\d*\\.\\d+)|(\\d+))([eE][+-]?\\d+)?)(\\%|in|cm|mm|pt|pc|px|em|ex)?").matcher(""); 57 57 static final Matcher intMatch = Pattern.compile("[-+]?\\d+").matcher(""); 58 static final Matcher quoteMatch = Pattern.compile("^'|'$").matcher(""); 58 59 59 60 /** Creates a new instance of XMLParseUtil */ … … 320 321 321 322 String key = styles[i].substring(0, colon).trim(); 322 String value = styles[i].substring(colon + 1).trim(); 323 String value = quoteMatch.reset(styles[i].substring(colon + 1).trim()).replaceAll(""); 323 324 324 325 map.put(key, new StyleAttribute(key, value));
Note:
See TracChangeset
for help on using the changeset viewer.