source: josm/trunk/resources/data/validator/multiple.mapcss

Last change on this file was 18182, checked in by Don-vip, 3 years ago

see #19419 - see #21192 - revert "Multiple access values" checks

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1/* #9757, #10869, #18266 */
2*["telecom:medium" =~ /.+;(.+)?/],
3*["addr:street" =~ /.+;(.+)?/],
4*[highway =~ /.+;(.+)?/],
5*[lanes =~ /.+;(.+)?/],
6*[maxspeed =~ /.+;(.+)?/],
7*[name =~ /.+;(.+)?/],
8*[surface =~ /.+;(.+)?/],
9*[water =~ /.+;(.+)?/] {
10 throwWarning: tr("{0} with multiple values", "{0.key}");
11}
12
13*[source =~ /^(;.*|.*;;.*|.*;)$/],
14*["source:addr" =~ /^(;.*|.*;;.*|.*;)$/],
15*["source:maxspeed" =~ /^(;.*|.*;;.*|.*;)$/],
16*["source:name" =~ /^(;.*|.*;;.*|.*;)$/],
17*["source:position" =~ /^(;.*|.*;;.*|.*;)$/],
18*["source:postcode" =~ /^(;.*|.*;;.*|.*;)$/],
19*[ref =~ /^(;.*|.*;;.*|.*;)$/],
20*[int_ref =~ /^(;.*|.*;;.*|.*;)$/],
21*[old_ref =~ /^(;.*|.*;;.*|.*;)$/],
22*[source_ref =~ /^(;.*|.*;;.*|.*;)$/],
23*[route_ref =~ /^(;.*|.*;;.*|.*;)$/],
24*[attribution =~ /^(;.*|.*;;.*|.*;)$/],
25*[name =~ /^(;.*|.*;;.*|.*;)$/],
26*[alt_name =~ /^(;.*|.*;;.*|.*;)$/],
27*[note =~ /^(;.*|.*;;.*|.*;)$/],
28*[fixme =~ /^(;.*|.*;;.*|.*;)$/],
29*["addr:housenumber" =~ /^(;.*|.*;;.*|.*;)$/],
30*[destination =~ /^(;.*|.*;;.*|.*;)$/],
31*[exit_to =~ /^(;.*|.*;;.*|.*;)$/],
32*[surface =~ /^(;.*|.*;;.*|.*;)$/],
33*["building:use" =~ /^(;.*|.*;;.*|.*;)$/],
34*[traffic_sign =~ /^(;.*|.*;;.*|.*;)$/],
35*[voltage =~ /^(;.*|.*;;.*|.*;)$/],
36*[sport =~ /^(;.*|.*;;.*|.*;)$/],
37*[cuisine =~ /^(;.*|.*;;.*|.*;)$/] {
38 throwWarning: tr("empty value in semicolon-separated ''{0}''", "{0.key}");
39 assertMatch: "node ref=;A1";
40 assertMatch: "node ref=A1;";
41 assertMatch: "node ref=;";
42 assertMatch: "node ref=A1;;A2";
43 assertNoMatch: "node ref=A1";
44 assertNoMatch: "node ref=A1;A2";
45}
Note: See TracBrowser for help on using the repository browser.