Skip to content

Commit d5fd17e

Browse files
authored
Allow space in sql filter (#9330)
Signed-off-by: Denis Bykhov <[email protected]>
1 parent 6300692 commit d5fd17e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/postgres/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ export function escape<T> (str: T): T {
663663
// Remove all characters except a-z, A-Z, 0-9 and _ .
664664
// Add cyrillic for support old custom attributes
665665
// eslint-disable-next-line no-useless-escape
666-
return str.replace(/[^a-zA-ZА-Яа-яЁё0-9_.:\-]/g, '') as T
666+
return str.replace(/[^a-zA-ZА-Яа-яЁё0-9_.:\- ]/g, '') as T
667667
}
668668
return str
669669
}

0 commit comments

Comments
 (0)