Remove strings before auto correction
Opened this issue · 2 comments
HolgerJeromin commented
When I remove "uhr" from the homepage string the auto correction transforms it to a valid definition
"Mo-Fr 7-18 Uhr, Sa 7-18 Uhr, So 7-18 Uhr"
simonpoole commented
That works because you are a human (I think :-)). The parser could likely be more aggressive in skipping invalid input and restarting instead of failing, but that doesn't necessarily mean that overall parsing performance would really improve, just that "something" would be returned even if it is total nonsense.
simonpoole commented
See simonpoole/OpeningHoursParser#11 for the upstream issue