Changeset 15546 in josm for trunk/data/validator
- Timestamp:
- 2019-11-30T18:51:36+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/wikipedia.mapcss
r15545 r15546 83 83 assertMatch: "node wikipedia=en:foo"; 84 84 assertNoMatch: "node wikipedia=en:Foo"; 85 assertMatch: "node wikipedia=ru: абв";86 assertNoMatch: "node wikipedia=ru: Ð�бв";85 assertMatch: "node wikipedia=ru:абв"; 86 assertNoMatch: "node wikipedia=ru:Абв"; 87 87 } 88 88 89 89 *[wikipedia =~ /(?i)^[-a-z]{2,12}:.*_/][wikipedia !~ /(?i)^[-a-z]{2,12}:https?:/] { 90 throwWarning: tr("wikipedia page title should have spaces instead of underscores (''_'' →'' '')");90 throwWarning: tr("wikipedia page title should have spaces instead of underscores (''_''→'' '')"); 91 91 fixAdd: concat("wikipedia=", get(regexp_match("(?i)^([-a-z]+:)(.+)$", tag("wikipedia")),1), trim(replace(get(regexp_match("(?i)^([-a-z]+:)(.+)$", tag("wikipedia")),2), "_", " "))); 92 92 assertMatch: "node wikipedia=en:foo_bar";
Note:
See TracChangeset
for help on using the changeset viewer.