Commit cd37e34
committed
fix(cron): accept day-of-week 7 as a valid Sunday alias
Standard cron syntax allows weekday values 0–7, where both 0 and 7
mean Sunday (documented in crontab(5) and implemented by vixie-cron,
cronie, fcron, and most Unix cron daemons). The validator was
enforcing a max of 6, rejecting valid expressions like
`* * * * 7`, `0 0 * * 0-7`, and `0 0 * * 0,7`.
Change the weekday upper bound from 6 to 7 and add three test cases
that were previously (incorrectly) rejected.1 parent 70de324 commit cd37e34
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
0 commit comments