Changeset 8701 in josm for trunk/data/validator


Ignore:
Timestamp:
2015-08-28T22:43:26+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #11529 - add numeric test for maxweight (copied from maxwidth test directly above)

File:
1 edited

Legend:

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

    r8700 r8701  
    8181  assertNoMatch: "way maxwidth=7 ft";
    8282}
     83*[maxweight][maxweight !~ /^(([0-9]+\.?[0-9]*( (t|kg|lbs))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/] {
     84  throwWarning: tr("{0}: meters is default; period is separator; if units, put space then unit", "maxweight");
     85  assertMatch: "way maxweight=something";
     86  assertMatch: "way maxweight=-5";
     87  assertNoMatch: "way maxweight=2";
     88  assertNoMatch: "way maxweight=6'6\"";
     89  assertNoMatch: "way maxweight=2.5";
     90  assertNoMatch: "way maxweight=7 kg";
     91}
    8392way[maxspeed][maxspeed !~ /^(signals|none|unposted|variable|walk|[1-9][0-9]*( [a-z]+)?|[A-Z][A-Z]:(urban|rural|living_street|motorway))$/],
    8493way[maxspeed:forward][maxspeed:forward !~ /^(signals|none|unposted|variable|walk|[1-9][0-9]*( [a-z]+)?|[A-Z][A-Z]:(urban|rural|living_street|motorway))$/],
Note: See TracChangeset for help on using the changeset viewer.