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

Handle small typos and other small mistakes #8

Open
MoralCode opened this issue Jul 4, 2021 · 0 comments
Open

Handle small typos and other small mistakes #8

MoralCode opened this issue Jul 4, 2021 · 0 comments
Labels
blocked Things that are blocked on external factors

Comments

@MoralCode
Copy link
Owner

MoralCode commented Jul 4, 2021

It would be nice to be able to pass in real-world opening hours data that may have some typos and have this library automatically handle that.

Maybe a more complex solution would be better but for now an easy solution to this would be to change some of the patterns that currently use CaselessMatch for parsing so they can tolerate a certain number of incorrect characters and still be considered valid.

This "ignore up to x typos" functionality does not currently exist in this specific class in pyparsing, although it exists in other classes (CloseMatch if i recall correctly). There is currently an open PR in pyparsing to add this functionality.

@MoralCode MoralCode added the blocked Things that are blocked on external factors label Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Things that are blocked on external factors
Projects
None yet
Development

No branches or pull requests

1 participant