-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow inverted ranges like 20-4 #25
Comments
In #31, @skewwhiffy said:
Thanks for the offer to try & fix. Just keep in mind that this issue proposes a breaking change so it's only going to be rolled into the next major release and I don't have a schedule for that yet. |
@atifaziz Is it worth fixing the FRI-MON issues separately, as it's not immediately obvious that this is an inverted range issue? |
@skewwhiffy The code to parse ranges is the same for all fields of the crontab expression so if you fix it for one, it's fixed for all. |
@atifaziz I know, I'm proposing separating them because I don't think that 'FRI-MON' should be treated in the same way as '5-1': the latter looks and feels like an inverted range, but the former, at least to humans, does not. |
Disallow inverted ranges, as in
20-4 * * * *
. It confuses folks (see #24 and #14) and most other implementations don't allow it either.This would be a breaking change so it should be done in the next major version.
The text was updated successfully, but these errors were encountered: