Skip to content

Commit 3e2ae6c

Browse files
Fix lint issues and add pending release item
1 parent 0bae103 commit 3e2ae6c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Read more:
4444
- `helpers.abortPromise` added; will reject when `abortSignal` aborts (useful
4545
for `Promise.race()`)
4646
- `backfillPeriod` is now marked as optional in TypeScript (defaults to 0).
47+
- Support for loading tasks from nested folders in crontab.
48+
- (`* * * * * nested/folder/task ?jobKey=my_key&jobKeyMode=preserve_run_at`)
4749

4850
## v0.16.6
4951

__tests__/crontab.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ test("parses crontab file correctly", () => {
188188
.parsedCronMatch as ParsedCronMatch;
189189
expect(parsedCronMatch10.minutes).toEqual(ALL_MINUTES);
190190
expect(parsedCronMatch10.hours).toEqual(ALL_HOURS);
191-
191+
192192
expect(parsed).toMatchSnapshot();
193193
});
194194

src/cronConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const CRONTAB_WILDCARD = /^\*(?:\/([0-9]+))?$/;
2828
// The command from the crontab line
2929
/** Splits the command from the crontab line into the task, options and payload. */
3030
export const CRONTAB_COMMAND =
31-
/^([_a-zA-Z][_a-zA-Z0-9:\/_-]*)(?:\s+\?([^\s]+))?(?:\s+(\{.*\}))?$/
31+
/^([_a-zA-Z][_a-zA-Z0-9:/_-]*)(?:\s+\?([^\s]+))?(?:\s+(\{.*\}))?$/;
3232

3333
// Crontab command options
3434
/** Matches the id=UID option, capturing the unique identifier */

0 commit comments

Comments
 (0)