source: josm/trunk/data/validator/multiple.mapcss@ 14117

Last change on this file since 14117 was 7937, checked in by bastiK, 10 years ago

add subversion property svn:eol=native

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1/* see #9757, #10869 - Better handling of semicolon in values
2*/
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*[cuisine =~ /^(;.*|.*;;.*|.*;)$/] {
37 throwWarning: tr("empty value in semicolon-separated ''{0}''", "{0.key}");
38 assertMatch: "node ref=;A1";
39 assertMatch: "node ref=A1;";
40 assertMatch: "node ref=;";
41 assertMatch: "node ref=A1;;A2";
42 assertNoMatch: "node ref=A1";
43 assertNoMatch: "node ref=A1;A2";
44}
Note: See TracBrowser for help on using the repository browser.