-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Each field within an expression has different constraints (day of the month is between 1-31, month between 1-12), thus the visitor should validate these constraints to properly reject invalid expressions.
Sample code
// Invalid month upper bound
const expression = "0 0 * 6-15 *";
const invalidResult = cronix(expression);
// Should be null
console.log(invalidResult.ast);
// Should contain an error at visitor step
console.log(invalidResult.errors[0]);
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request