Skip to content

Commit ee5c8d9

Browse files
authored
Support old custom fields (#9289)
Signed-off-by: Denis Bykhov <[email protected]>
1 parent a5f11b1 commit ee5c8d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/postgres/src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,8 @@ export interface JoinProps {
661661
export function escape<T> (str: T): T {
662662
if (typeof str === 'string') {
663663
// Remove all characters except a-z, A-Z, 0-9 and _ .
664-
return str.replace(/[^a-zA-Z0-9_.:]/g, '') as T
664+
// Add cyrillic for support old custom attributes
665+
return str.replace(/[^a-zA-ZА-Яа-яЁё0-9_.:\-]/g, '') as T
665666
}
666667
return str
667668
}

0 commit comments

Comments
 (0)