Changeset 13027 in josm for trunk/data/validator
- Timestamp:
- 2017-10-21T11:43:41+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/numeric.mapcss
r13005 r13027 8 8 9 9 *[layer =~ /^\+\d/] { 10 throwWarning: tr(" layer tag with + sign");10 throwWarning: tr("{0} value with + sign", "{0.key}"); 11 11 fixAdd: concat("layer=", replace(tag("layer"), "+", "")); 12 12 assertMatch: "node layer=+1"; … … 17 17 18 18 *[layer][layer !~ /^0$|^(-|\+)?[1-5]$/] { 19 throwWarning: tr(" layer should be between -5 and 5");19 throwWarning: tr("{0} should be an integer value between -5 and 5", "{0.key}"); 20 20 assertMatch: "node layer=-50"; 21 21 assertMatch: "node layer=6"; 22 assertMatch: "node layer=+100"; 22 assertMatch: "node layer=+10"; 23 assertMatch: "node layer=0.5"; 24 assertMatch: "node layer=0;1"; 23 25 assertNoMatch: "node layer=-5"; 24 26 assertNoMatch: "node layer=0";
Note:
See TracChangeset
for help on using the changeset viewer.