MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / _matchDomField

Function _matchDomField

packages/server/src/services/schedule/utils.ts:206–216  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

204 * to `_matchCronField`.
205 */
206function _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
218interface _ParsedCronFields {
219 minuteField: string

Callers 2

_cronMatchesParsedFunction · 0.85
cronDomMatchesNowFunction · 0.85

Calls 1

_matchCronFieldFunction · 0.85

Tested by

no test coverage detected