wiki:Rules/MissingWeekdays

Possible missing weekdays

This rule checks for possible missing weekdays in the Key:opening_hours. Note that openening hours without weekdays can be correct, so be careful when editing the osm data. See also ticket:14026.

meta {
    title: "Possible missing weekdays";
    version: "1.1_2017-01-09";
    description: "Checks for possible missing weekdays in the opening_hours key. Note that opening hours without weekdays can be correct, so be careful when editing the osm data.";
    author: "Klumbumbus";
    link: "http://josm.openstreetmap.de/wiki/Rules/MissingWeekdays";
 /* icon: ""; */
    min-josm-version: "6455"; /* due to !~ */
}
meta[lang=de] {
    title: "Mögliche fehlende Wochentage";
    description: "Prüft, auf möglicherweise fehlende Wochentage im opening_hours Schlüssel. Bedenke, dass Öffnungszeiten ohne Wochentage korrekt sein können, sei also vorsichtig beim Bearbeiten der OSM-Daten.";
}

*[opening_hours][opening_hours =~ /[0-2][0-9]:[0-5][0-9]/][opening_hours !~ /Mo|Tu|We|Th|Fr|Sa|Su/] {
  throwOther: tr("possible missing weekdays in opening hours");
  assertMatch: "node opening_hours=09:00-18:00";
  assertNoMatch: "node opening_hours=Mo-Fr 09:00-18:00";
}

Rules_MissingWeekdays.validator.mapcss, Rules_MissingWeekdays.zip

Last modified 11 months ago Last modified on 2017-01-09T19:24:15+01:00