Changeset 19617 in josm for trunk/src/org
- Timestamp:
- 2026-08-12T16:17:45+02:00 (7 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Tag2Link.java
r19585 r19617 215 215 final String formattedValue = valueFormatter.getOrDefault(key, x -> x).apply(value); 216 216 217 final String urlKey = formatterUrls.stream().map(urlFormatter -> PATTERN_DOLLAR_ONE.matcher(urlFormatter) 217 final String urlKey = Utils.encodeUrl(formatterUrls.stream().map(urlFormatter -> PATTERN_DOLLAR_ONE.matcher(urlFormatter) 218 218 .replaceAll(Matcher.quoteReplacement("(.*)"))).map(PatternUtils::compile) 219 219 .map(pattern -> pattern.matcher(value)).filter(Matcher::matches) 220 .map(matcher -> matcher.group(1)).findFirst().orElse(formattedValue); 220 .map(matcher -> matcher.group(1)).findFirst().orElse(formattedValue)); 221 221 222 222 formatterUrls.forEach(urlFormatter -> {
Note:
See TracChangeset
for help on using the changeset viewer.
