Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions for more lenient parsing #84

Open
9 tasks
westnordost opened this issue Jan 10, 2024 · 0 comments
Open
9 tasks

Suggestions for more lenient parsing #84

westnordost opened this issue Jan 10, 2024 · 0 comments

Comments

@westnordost
Copy link
Contributor

westnordost commented Jan 10, 2024

Rather than creating a new ticket for each of these, a list. Feel free to cross any out that you do not find meaningful to implement

  • accept A.M / P.M (missing dot at the end)

  • accept /

  • accept a dangling h for times that only have the hour specified (e.g 8h - 12h)

  • accept written-out weekdays and months (Thursday, December, ...)

  • translate midday and noon to 12:00, midnight to 0:00 (very low usage though, or rather, in strings where it is used, there are more problems with the syntax)

  • accept sundown as synonym to sunset (and sunup as synonym to sunrise? - didn't know this word existed, but it does)

  • just like for weekdays, accept certain German month abbreviations (e.g. Dez)

  • accept a single "." after weekday and months abbreviations (e.g. Dec., Mo.)

  • allow spaces in-between 10 : 00 (actually, this could also be valid in strict mode, as the spec does not forbid this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant