Ticket #19018: 19018.2.patch

File 19018.2.patch, 1.1 KB (added by GerdP, 4 years ago)

positive list

  • resources/data/validator/combinations.mapcss

     
    673673*[amenity=recycling][collection_times       ][opening_hours][collection_times=~/[a-z]-[A-Z].*[0-9]-[0-9]/] {
    674674  throwWarning: tr("{0} together with {1}. Probably {2} is meant.", "{1.key}", "{0.tag}", "{2.key}");
    675675  group: tr("suspicious tag combination");
    676 }
    677  No newline at end of file
     676}
     677
     678/* #19018 */
     679way[highway][crossing][highway =~ /^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|unclassified|residential|service|living_street)$/] {
     680  throwWarning: tr("{0} together with {1}. Should be used on a minor highway type or a node", "{1.key}", "{0.tag}");
     681  group: tr("suspicious tag combination");
     682  fixRemove: "crossing";
     683  assertMatch: "way highway=trunk crossing=unmarked";
     684  assertNoMatch: "way highway=construction construction=footway crossing=unmarked";
     685}