Changeset 7240 in josm for trunk/src


Ignore:
Timestamp:
2014-06-10T22:05:28+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #10118 - fix message in validator panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r7234 r7240  
    336336                final String argument = determineArgument((Selector.GeneralSelector) matchingSelector, Integer.parseInt(m.group(1)), m.group(2));
    337337                try {
    338                     m.appendReplacement(sb, String.valueOf(argument));
     338                    // Perform replacement with null-safe + regex-safe handling
     339                    m.appendReplacement(sb, String.valueOf(argument).replace("^(", "").replace(")$", ""));
    339340                } catch (IndexOutOfBoundsException | IllegalArgumentException e) {
    340341                    Main.error(tr("Unable to replace argument {0} in {1}: {2}", argument, sb, e.getMessage()));
Note: See TracChangeset for help on using the changeset viewer.