floraison / fugit

time tools (cron, parsing, durations, ...) for Ruby, rufus-scheduler, and flor
MIT License
353 stars 29 forks source link

be liberal with extra commas #77

Closed jmettraux closed 1 year ago

jmettraux commented 1 year ago

https://github.com/floraison/fugit/issues/76#issuecomment-1246043044

The other common input that changed is a trailing comma, like 5,15,25,35,45,55, . These used to parse and now they raise an error, but we can clean these particular issue up in the dataset prior to upgrading so it's less challenging to handle.

Postel law:

be conservative in what you do, be liberal in what you accept from others

Accept trailing commas and 1,,2 extra commas.