= Possible missing weekdays = This rule checks for possible missing weekdays in the [osmwiki:Key:opening_hours]. Note that openening hours without weekdays can be correct, so be careful when editing the osm data. See also ticket:14026. {{{ #!rule meta { title: "Possible missing weekdays"; version: "1.[[revision]]_[[date]]"; 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"; } }}}