Closed zangguodong closed 1 year ago
https://github.com/harrisiirak/cron-parser/blob/f687555f25ff0e4e12a951f3a4827b382436692f/lib/expression.js#L275
Due to not providing basic repeat atomic format validation, cron-parser sees format like 10 16/17/18 * * * as valid, and parse it as 10 16/17 * * *. But 16/17/18 should not be correct format, isn't it?
10 16/17/18 * * *
10 16/17 * * *
16/17/18
@zangguodong thanks for reporting this! It should throw an error indeed as it's in an invalid format.
https://github.com/harrisiirak/cron-parser/blob/f687555f25ff0e4e12a951f3a4827b382436692f/lib/expression.js#L275
Due to not providing basic repeat atomic format validation, cron-parser sees format like
10 16/17/18 * * *
as valid, and parse it as10 16/17 * * *
. But16/17/18
should not be correct format, isn't it?