Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/validators/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def cron(value: str, /):
return False
if not _validate_cron_component(months, 1, 12):
return False
if not _validate_cron_component(weekdays, 0, 6):
if not _validate_cron_component(weekdays, 0, 7):
return False

return True
3 changes: 3 additions & 0 deletions tests/test_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"0 3-6 * * *",
"*/15 0,6,12,18 * * *",
"0 12 * * 0",
"0 12 * * 7",
"0 0 * * 0-7",
"0 0 * * 0,7",
"*/61 * * * *",
# "5-10/2 * * * *", # this is valid, but not supported yet
],
Expand Down