simonpoole / OpeningHoursFragment

Android UI element for displaying and editing an opening hours value
MIT License
9 stars 2 forks source link

Remove strings before auto correction #14

Open HolgerJeromin opened 7 years ago

HolgerJeromin commented 7 years ago

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 7 years ago

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 6 years ago

See https://github.com/simonpoole/OpeningHoursParser/issues/11 for the upstream issue