-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
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.