We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cd4764 commit 81af91dCopy full SHA for 81af91d
src/entities/file/ui/FileNameTemplate/constants.ts
@@ -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;
+/** Regexp to filename template */
+export const FILE_NAME_TEMPLATE_PATTERN =
+ /^[\w.-]*(\{index\}){0,1}[\w.-]*(\{run_id\}|\{run_created_at\})[\w.-]*(\{index\}){0,1}[\w.-]*\{extension\}$/iu;
0 commit comments