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

Regex for OSM opening hours #81

Closed
josee-sabourin opened this issue Apr 5, 2023 · 1 comment
Closed

Regex for OSM opening hours #81

josee-sabourin opened this issue Apr 5, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@josee-sabourin
Copy link
Contributor

As discussed in #79, we have not been able to find a regular expression that encapsulates the OSM Opening Hours format.

Opening this issue in case someone has a solution, and as a general reminder to keep looking for one.

@josee-sabourin josee-sabourin added enhancement New feature or request help wanted Extra attention is needed labels Apr 5, 2023
@richfab
Copy link
Contributor

richfab commented Oct 31, 2023

This comment (upvoted by 3 people) mentions that this format is too complex to be validated with a regex.

I don't think a regex can handle this complex format. You will need a real parser. The OSM wiki lists several implementations:

For this reason, I would recommend to close this issue.

A new issue could be opened in https://github.com/MobilityData/gbfs-validator, given that code seems to be required to validate OSM opening hours.

@richfab richfab closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants