Skip to content

Commit a002600

Browse files
committed
[DOP-29475] Fix directory_path validation
1 parent 6b0977a commit a002600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/constants/regexp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** Regexp like absolute path in unix and windows OS (e.g. /home) */
2-
export const ABSOLUTE_PATH_PATTERN = /^\/[\w\d ]+[\w\d \/]*/iu;
2+
export const ABSOLUTE_PATH_PATTERN = /^\/[\w\d ]+(\/[\w\d ]+)*$/iu;
33

44
/** Regexp to table name (e.g. schema.table or namespace1.namespace2.table) */
55
export const TABLE_NAME_PATTERN = /^[\w\d]+(\.[\w\d]+)+$/iu;

0 commit comments

Comments
 (0)