Skip to content

reject invalid dates with bad_cronexpr - #46

Merged
mariusbancila merged 1 commit into
masterfrom
fix/invalid_dates
Aug 11, 2026
Merged

reject invalid dates with bad_cronexpr#46
mariusbancila merged 1 commit into
masterfrom
fix/invalid_dates

Conversation

@mariusbancila

@mariusbancila mariusbancila commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Invalid dates such as 0 0 5 31 2 ? throw a bad_cronexpr exception.

Also replace a name only when it forms a complete token - the match must be bounded by the start of the string, the end, or one of ,-/. That keeps JAN,FEB and MON-FRI working while rejecting JAN1 and 1JAN with the existing "invalid character" error.

Fixes #7.

@mariusbancila
mariusbancila merged commit 59cc863 into master Aug 11, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Behavior on "imaginary dates"

1 participant