Skip to content

Commit 81af91d

Browse files
committed
[DOP-29475] Fix filenameTemplate pattern
1 parent 8cd4764 commit 81af91d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
/** Regexp to filename template, which must include `{extension}` and `{index}` placeholder (e.g. qwerty_{index}.{extension}) */
2-
export const FILE_NAME_TEMPLATE_PATTERN =
3-
/^(?=.*\{index\})(?=.*\{extension\})([\w\d.\-]*\{(?:index|extension|run_created_at|run_id)\}[\w\d.\-]*)*$/iu;
1+
/** Regexp to filename template */
2+
export const FILE_NAME_TEMPLATE_PATTERN =
3+
/^[\w.-]*(\{index\}){0,1}[\w.-]*(\{run_id\}|\{run_created_at\})[\w.-]*(\{index\}){0,1}[\w.-]*\{extension\}$/iu;

0 commit comments

Comments
 (0)