Ignore:
Timestamp:
2020-01-06T22:13:13+01:00 (5 months ago)
Author:
Klumbumbus
Message:
File:
1 edited

Legend:

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

    r15635 r15648  
    270270}
    271271
    272 /* {0.tag} together with {1.tag}, see #17950, #17330, #17623, #17592, #17594, #17542, #16861, #16147, #10186 */
     272/* {0.tag} together with {1.tag}, see #18411, #17950, #17330, #17623, #17592, #17594, #17542, #16861, #16147, #10186 */
     273*[barrier=kerb][kerb=no],
     274way[highway=construction][construction=yes],
     275way[railway=construction][construction=yes],
    273276*[man_made=bridge][bridge=yes],
    274277*[man_made=tunnel][tunnel=yes],
     
    649652  group: tr("suspicious tag combination");
    650653}
     654
     655/* #18374 */
     656*[amenity=recycling][collection_times="24/7"][!opening_hours],
     657*[amenity=recycling][collection_times       ][!opening_hours][collection_times=~/[a-z]-[A-Z].*[0-9]-[0-9]/] {
     658  throwWarning: tr("{0} together with {1}. Probably {2} is meant.", "{1.key}", "{0.tag}", "{2.key}");
     659  group: tr("suspicious tag combination");
     660  fixChangeKey: "collection_times => opening_hours";
     661  /* spaces in asserts are not yet supported
     662  assertMatch: "node amenity=recycling collection_times=Mo-Fr 06:00-20:00";
     663  assertNoMatch: "node amenity=recycling collection_times=Mo-Fr 15:00";
     664  assertNoMatch: "node amenity=recycling collection_times=Mo 08:00-11:00";
     665  assertNoMatch: "node amenity=recycling collection_times=Sa[2,4] 8:00-11:00";
     666  */
     667}
     668*[amenity=recycling][collection_times="24/7"][opening_hours],
     669*[amenity=recycling][collection_times       ][opening_hours][collection_times=~/[a-z]-[A-Z].*[0-9]-[0-9]/] {
     670  throwWarning: tr("{0} together with {1}. Probably {2} is meant.", "{1.key}", "{0.tag}", "{2.key}");
     671  group: tr("suspicious tag combination");
     672}
Note: See TracChangeset for help on using the changeset viewer.