Skip to content

Be (even) more lenient  #5

@simonpoole

Description

@simonpoole

Potential further improvements could be made by consuming:

  • times with missing trailing zeros
  • times with unusual separators (mainly ".",) (there are slightly less than 1000 such OH specs in the test data)
  • times with "h" as separator, see above
  • 4 digit times
  • PH/SH in weekday list (173 occurrences)
  • utf white space
  • "to" instead of "-"
  • times specified with am/pm
  • interpret "wd" as weekdays
  • translations of "to"

See https://github.com/simonpoole/OpeningHoursParser/blob/master/test-data/oh.txt-fail for list of strings that currently fail in non-strict mode.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions