-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi,
I tested library on the examples provided by official Quartz Scheduler documentation. and found bug.
The following line 0/5 14,18,3-39,52 * ? JAN,MAR,SEP MON-FRI 2002-2010 does not pass validation, as it contains mix of sequence and interval its minutes section.
Such mixes can occur in other fields sections as well.
I see two the most strait-forward solutions:
- Split such parts into subparts and validate using existing regexes.
- (more optimal), Update existing regexes allowing such mixes
example:
from quartz_cron_checker import validate_cron_string, QuartzCronChecker
c = QuartzCronChecker.from_cron_string("0/5 14,18,3-39,52 * ? JAN,MAR,SEP MON-FRI 2002-2010")
c.validate()

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels