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.2_2018-03-24";
    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: "https://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 6 years ago Last modified on 2018-03-24T17:49:14+01:00
Note: See TracWiki for help on using the wiki.