Changeset 15383 in josm for trunk


Ignore:
Timestamp:
2019-09-28T20:16:06+02:00 (5 years ago)
Author:
Klumbumbus
Message:

fix #18148 - remove duplicate warning for unusual direction

File:
1 edited

Legend:

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

    r15325 r15383  
    278278/* #14989 */
    279279*[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],
    286281*[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))*$/] {
    287282  throwWarning: tr("unusual value of {0}", "{0.key}");
     
    299294  assertNoMatch: "node direction=up";
    300295  assertNoMatch: "node direction=down"; /* up/down are replaced by incline tag, has separate warning */
     296  assertMatch: "node direction=-10";
    301297  assertNoMatch: "node direction=0";
    302298  assertNoMatch: "node direction=45";
    303   assertNoMatch: "node direction=360";
     299  assertMatch: "node direction=360";
    304300  assertNoMatch: "node direction=N";
    305301  assertNoMatch: "node direction=NNE";
Note: See TracChangeset for help on using the changeset viewer.