Open
Description
- cron-parser version: 4.0.0
- node: 14.16.0
as the title, when i use expression like 20 15 * *
, it pass the validation and becomes * 20 15 * *
by default, i think the expression without minute should not pass the validation because minute is not optional but required.
also, the expression 20 15 * *
does not pass the validation in other package or site like https://crontab.guru/
here is the sample, the function parseExpression
should throw a error but not:
const parser = require('cron-parser');
try {
const interval = parser.parseExpression('20 15 * *');
interval.next(); // 2021-10-15 20:00:00
interval.next(); // 2021-10-15 20:01:00
interval.next(); // 2021-10-15 20:02:00
} catch(e) {
console.log(e);
}