- Timestamp:
- 2019-09-28T20:16:06+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/numeric.mapcss
r15325 r15383 278 278 /* #14989 */ 279 279 *[direction][direction<0], 280 *[direction][direction>=360] { 281 throwWarning: tr("unusual value of {0}", "{0.key}"); 282 assertMatch: "node direction=-10"; 283 assertMatch: "node direction=360"; 284 assertNoMatch: "node direction=0"; 285 } 280 *[direction][direction>=360], 286 281 *[direction][direction !~ /^([0-9][0-9]?[0-9]?|north|east|south|west|N|E|S|W|NE|SE|SW|NW|NNE|ENE|ESE|SSE|SSW|WSW|WNW|NNW|forward|backward|both|clockwise|anti-clockwise|anticlockwise|up|down)(-([0-9][0-9]?[0-9]?|N|E|S|W|NE|SE|SW|NW|NNE|ENE|ESE|SSE|SSW|WSW|WNW|NNW))?(;([0-9][0-9]?[0-9]?|N|E|S|W|NE|SE|SW|NW|NNE|ENE|ESE|SSE|SSW|WSW|WNW|NNW)-([0-9][0-9]?[0-9]?|N|E|S|W|NE|SE|SW|NW|NNE|ENE|ESE|SSE|SSW|WSW|WNW|NNW))*$/] { 287 282 throwWarning: tr("unusual value of {0}", "{0.key}"); … … 299 294 assertNoMatch: "node direction=up"; 300 295 assertNoMatch: "node direction=down"; /* up/down are replaced by incline tag, has separate warning */ 296 assertMatch: "node direction=-10"; 301 297 assertNoMatch: "node direction=0"; 302 298 assertNoMatch: "node direction=45"; 303 assert NoMatch: "node direction=360";299 assertMatch: "node direction=360"; 304 300 assertNoMatch: "node direction=N"; 305 301 assertNoMatch: "node direction=NNE";
Note:
See TracChangeset
for help on using the changeset viewer.