P4sca1 / cron-schedule

A zero-dependency cron parser and scheduler for Node.js, Deno and the browser.
MIT License
172 stars 14 forks source link

Weekday range to sunday edge case #282

Closed sky0hunter closed 1 year ago

sky0hunter commented 1 year ago

Heyho,

there is a little bug when using a range for weekdays which includes sunday as '7', due to the replacement with '0'.

I.e.: 5 10 * * 6-7 will throw Failed to parse 6-7: Invalid range (start: 6, end: 0).

P4sca1 commented 1 year ago

Thank you for raising this. I'm going to have a look at this, once I get some spare time.

P4sca1 commented 1 year ago

:tada: This issue has been resolved in version 4.0.0-next.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

P4sca1 commented 1 year ago

:tada: This issue has been resolved in version 4.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: