Releases: MoralCode/parse-opening-hours
Releases · MoralCode/parse-opening-hours
v0.4.2
v0.4.1
v0.4
v0.3 re-release
The pypi build for v0.3 contained additional information from the local working tree that was not committed to the repository and may have introduced some unintended behavior (all tests still passed though). This re-build and re-release removes this information from the production package.
v0.3
- [BREAKING] rename the main class to OpeningHours since its not exclusive to json
- more refactoring and cleanup
- add generated documentation page
- improve robustness of some of the matching patterns
- count the single-letter "H" as "thursday" when used as a day (i.e. "H 9am - 5 pm")
- parse the word "from" as a separator between dates and times (i.e. "Monday from 9:00 - 5:00")
- support dots following abbreviated days of the week (i.e. "Mon.")
- support commas separating days and times (i.e. Monday, 9am - 5pm")
- support times in military style (i.e. "Monday 0900-1700")
- support short/abbreviated AM/PM designations (i.e. "9a - 5p" and "9a. to 5p.")
v0.2
Changelog
- support plural day names with appostrophes (i.e. "Monday's 9am to 5 pm")
- support listing specific days (i.e. "Mondays, Tuesdays, Thursdays 9am to 5 pm")
- add support for commonly used shortcuts like "7 days a week" "daily" "weekdays" "business days" "weekends" .etc
- treat no specified days (i.e. "9am to 5pm") the same as "every day"
- made parsing of day names more robust
Basic first release
This release is what could be considered an MVP. it can handle basic strings like "Mon- Fri 9:00am - 5:30pm" (with some variations in day and time format) and has test cases covering most if not all of these