Closed zachsents closed 3 weeks ago
Like title says. Other macros like @hourly and @daily work correctly.
@hourly
@daily
See this snippet:
import { parseCronExpression } from "cron-schedule" parseCronExpression("@monthly").months // [ 0 ] parseCronExpression("0 0 1 * *").months // [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] parseCronExpression("@hourly").months // [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
Test case is also incorrect: https://github.com/P4sca1/cron-schedule/blob/11a23c95f652c52997e1cc1024434cc288157f69/test/cron-parser.test.ts#L350C1-L354C4
Like title says. Other macros like
@hourly
and@daily
work correctly.See this snippet: