simonpoole / OpeningHoursParser

Parser for string values according to the OSM opening hours specification
MIT License
32 stars 12 forks source link

Rule with superfluous separator accepted in strict mode (`Mo-Fr: 12:00`) #86

Open westnordost opened 9 months ago

westnordost commented 9 months ago

The readme states:

In non-strict mode the following further differences are allowed: [...]

  • superfluous ":" after weekday range

However, Mo-Fr: 12:00 is parsed without error also in strict mode.

simonpoole commented 7 months ago

The comment in the source is

// spec is not clear on this, however ":" is used in real life here a lot

as a tendency I wouldn't change the behaviour as it may simply be a question of this being missed when the specification was created.