Changes between Initial Version and Version 1 of Rules/MissingWeekdays


Ignore:
Timestamp:
2017-01-09T19:24:15+01:00 (9 years ago)
Author:
Klumbumbus
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Rules/MissingWeekdays

    v1 v1  
     1= Possible missing weekdays =
     2
     3This 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.
     4
     5{{{
     6#!rule
     7meta {
     8    title: "Possible missing weekdays";
     9    version: "1.[[revision]]_[[date]]";
     10    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.";
     11    author: "Klumbumbus";
     12    link: "http://josm.openstreetmap.de/wiki/Rules/MissingWeekdays";
     13 /* icon: ""; */
     14    min-josm-version: "6455"; /* due to !~ */
     15}
     16meta[lang=de] {
     17    title: "Mögliche fehlende Wochentage";
     18    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.";
     19}
     20
     21*[opening_hours][opening_hours =~ /[0-2][0-9]:[0-5][0-9]/][opening_hours !~ /Mo|Tu|We|Th|Fr|Sa|Su/] {
     22  throwOther: tr("possible missing weekdays in opening hours");
     23  assertMatch: "node opening_hours=09:00-18:00";
     24  assertNoMatch: "node opening_hours=Mo-Fr 09:00-18:00";
     25}
     26}}}