* @param {string} expression The Cron-Job expression. * @returns {boolean}
(expression)
| 59 | * @returns {boolean} |
| 60 | */ |
| 61 | function isInvalidDayOfMonth(expression) { |
| 62 | // 'L' (last day of the month) is a valid token in this field only; the |
| 63 | // remaining values must still be valid day numbers. |
| 64 | const days = expression.filter((value) => value !== 'L'); |
| 65 | return !isValidExpression(days, 1, 31); |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * @param {string} expression The Cron-Job expression. |
no test coverage detected