Ignore:
Timestamp:
2023-06-14T18:01:00+02:00 (2 years ago)
Author:
taylor.smock
Message:

Fix #17669, #22096: Allow placeholders in more locations in MapCSS

File:
1 edited

Legend:

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

    r18509 r18757  
    5555*[/^wikipedia:[-a-z]{2,12}$/][/^wikipedia:[-a-z]{2,12}$/ =~ /(?i).*%[0-9A-F][0-9A-F]/] {
    5656  throwError: tr("{0} tag should not have URL-encoded values like ''%27''", "{0.key}");
    57   /* fixAdd: concat("{0.key}", "=", get(regexp_match("(?i)^([-a-z]+:)(.*)$", tag("{0.key}")),1), trim(replace(URL_decode(get(regexp_match("(?i)^([-a-z]+:)(.+)$", tag("{0.key}")),2)), "_", " "))); */
    58     /* tag("{0.key}") is not yet supported */
     57  fixAdd: concat("{0.key}", "=", get(regexp_match("(?i)^([-a-z]+:)?(.*)$", tag("{0.key}")),1), trim(replace(URL_decode(get(println(regexp_match("(?i)^([-a-z]+:)?(.+)$", tag("{0.key}"))),2)), "_", " ")));
    5958  assertMatch: "node wikipedia:de=Foo%27s";
    6059  assertNoMatch: "node wikipedia:de=Foo";
Note: See TracChangeset for help on using the changeset viewer.