* Day-of-month matcher that additionally supports the `L` token, which fires only on the * last day of the current month. Other parts (numbers, ranges, lists, steps) fall through * to `_matchCronField`.
(field: string, dom: number, lastDay: number)
| 204 | * to `_matchCronField`. |
| 205 | */ |
| 206 | function _matchDomField(field: string, dom: number, lastDay: number): boolean { |
| 207 | if (field === '*') return true |
| 208 | for (const part of field.split(',')) { |
| 209 | if (part === 'L') { |
| 210 | if (dom === lastDay) return true |
| 211 | continue |
| 212 | } |
| 213 | if (_matchCronField(part, dom, 1)) return true |
| 214 | } |
| 215 | return false |
| 216 | } |
| 217 | |
| 218 | interface _ParsedCronFields { |
| 219 | minuteField: string |
no test coverage detected