kiorky / croniter

MIT License
382 stars 37 forks source link

Flag to make parser compatible with Vixie/ISC cron bug #44

Closed dswhite42 closed 1 year ago

dswhite42 commented 1 year ago

Following up on #41, I added a flag ("implement_cronbug") to __init_\ in order to make croniter compatible with the day_of_month/day_of_week bug in Vixie cron.

(I took advantage of the fact that there was already a "day_or" flag where some of the necessary parsing is done. When "implement_cron_bug" is set and either day_of_month (DOM) or day_of_week (DOW) starts with an asterisk, it forces an intersection instead of a union of the DOM and DOW expressions.

kiorky commented 1 year ago

I edited / merged your code manually to fix re checks and add changelog entries.

1.4.0 is out, and lot of thanks for the contribution :champagne: