Changeset 15060 in josm for trunk/data


Ignore:
Timestamp:
2019-05-07T22:30:33+02:00 (5 years ago)
Author:
GerdP
Message:

fix #17684: Confusing error message for wikipedia tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/wikipedia.mapcss

    r14057 r15060  
    4848
    4949*[wikipedia =~ /(?i)^[-a-z]{2,12}:.*%[0-9A-F][0-9A-F]/] {
    50   throwError: tr("{0} tag should not have URL-encoded values like ''%27''", "{0.tag}");
     50  throwError: tr("{0} tag should not have URL-encoded values like ''%27''", "{0.key}");
    5151  fixAdd: concat("wikipedia=", get(regexp_match("(?i)^([-a-z]+:)(.*)$", tag("wikipedia")),1), trim(replace(URL_decode(get(regexp_match("(?i)^([-a-z]+:)(.+)$", tag("wikipedia")),2)), "_", " ")));
    5252  assertMatch: "node wikipedia=en:Foo%27s";
Note: See TracChangeset for help on using the changeset viewer.