simonpoole / OpeningHoursParser

Parser for string values according to the OSM opening hours specification
MIT License
32 stars 12 forks source link

Add open ended to year range #66

Closed goodudetheboy closed 3 years ago

goodudetheboy commented 3 years ago

I have added open ended to year range, for OH tags like "2021+". I have also made parser fail on "2021+-2022" or "2021-2022+", since the grammar permits only open ended for year range with start only. See year_range

goodudetheboy commented 3 years ago

Fix for #65

simonpoole commented 3 years ago

Upps sorry I didn't see that you had already provided a PR for this, my bad. I don't think there's any big differences to what I merged, outside that I added a couple of tests as there is no test data for this case.