Ignore:
Timestamp:
2015-02-02T17:29:58+01:00 (5 years ago)
Author:
Klumbumbus
Message:

fix #11055 - Improve Cinema preset, add validator, typos

File:
1 edited

Legend:

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

    r7937 r7998  
    141141}
    142142
    143 /* lanes* must be an integer positive number only, see #10837 */
    144 way[highway][lanes][lanes !~ /^[1-9]([0-9]*)$/],
    145 way[highway]["lanes:backward"]["lanes:backward" !~ /^[1-9]([0-9]*)$/],
    146 way[highway]["lanes:forward"]["lanes:forward" !~ /^[1-9]([0-9]*)$/] {
    147   throwError: tr("{0} must be a positive integer number", "{1.key}");
     143/* must be an integer positive number only and not 0, see #10837 (lanes), #11055 (screen) */
     144way[lanes][lanes !~ /^[1-9]([0-9]*)$/][highway],
     145way["lanes:backward"]["lanes:backward" !~ /^[1-9]([0-9]*)$/][highway],
     146way["lanes:forward"]["lanes:forward" !~ /^[1-9]([0-9]*)$/][highway],
     147*[screen][screen !~ /^[1-9]([0-9]*)$/][amenity=cinema] {
     148  throwError: tr("{0} must be a positive integer number", "{0.key}");
    148149  assertMatch: "way highway=residential lanes=-1";
    149150  assertMatch: "way highway=residential lanes=5.5";
     
    152153  assertMatch: "way highway=residential lanes:backward=-1";
    153154  assertNoMatch: "way highway=residential lanes=1";
     155  assertMatch: "node amenity=cinema screen=led";
     156  assertNoMatch: "node amenity=cinema screen=8";
    154157}
Note: See TracChangeset for help on using the changeset viewer.