OpeningHoursParser icon indicating copy to clipboard operation
OpeningHoursParser copied to clipboard

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

Open westnordost opened this issue 1 year ago • 1 comments

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.

westnordost avatar Jan 10 '24 01:01 westnordost

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.

simonpoole avatar Mar 09 '24 17:03 simonpoole