- Timestamp:
- 2016-02-04T20:05:11+01:00 (9 years ago)
- Location:
- trunk/data/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/ignoretags.cfg
r9725 r9737 100 100 E:seamark:type 101 101 E:traffic_sign 102 E:building:levels 102 103 ; 103 104 ; Ignore valid and semi-valid keys that end with... -
trunk/data/validator/numeric.mapcss
r9736 r9737 26 26 } 27 27 28 *[building:levels][building:levels !~ /^(([0-9]|[1-9][0-9]*)(\.5)?)$/], 28 29 *[level][level !~ /^((([0-9]|-[1-9])|[1-9][0-9]*)(\.5)?)(;(([0-9]|-[1-9])|[1-9][0-9]*)(\.5)?)*$|^-0\.5$/] { 29 throwWarning: tr(" level should be numbers with optional .5 increments");30 throwWarning: tr("{0} should have numbers only with optional .5 increments", "{0.key}"); 30 31 assertMatch: "node level=one"; 31 32 assertNoMatch: "node level=0"; … … 34 35 assertNoMatch: "node level=-0.5"; 35 36 assertNoMatch: "node level=1.5"; 37 assertNoMatch: "node building:levels=1.5"; 38 assertMatch: "node building:levels=-1"; 39 assertNoMatch: "node building:levels=0"; 36 40 } 37 41
Note:
See TracChangeset
for help on using the changeset viewer.