Ignore:
Timestamp:
2020-02-29T21:07:25+01:00 (2 years ago)
Author:
Klumbumbus
Message:

fix #18765 - Don't warn about two single values of direction (direction=90;270) and combination of ranges and single values (direction=45-100;190-250;300)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/numeric.mapcss

    r15715 r15965  
    279279*[direction][direction<0],
    280280*[direction][direction>=360],
    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))*$/] {
     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))*$/] {
    282282  throwWarning: tr("unusual value of {0}", "{0.key}");
    283283  assertMatch: "node direction=north-down";
     
    291291  assertNoMatch: "node direction=0-360"; /* complete panorama view */
    292292  assertNoMatch: "node direction=45-100;190-250;300-360";
    293   assertMatch: "node direction=45-100;190-250;300";
     293  assertMatch: "node direction=45-100;190-250;300-";
     294  assertNoMatch: "node direction=45-100;190-250;300";
     295  assertNoMatch: "node direction=90;270";
    294296  assertNoMatch: "node direction=up";
    295297  assertNoMatch: "node direction=down"; /* up/down are replaced by incline tag, has separate warning */
Note: See TracChangeset for help on using the changeset viewer.