diff --git a/server/postgres/src/utils.ts b/server/postgres/src/utils.ts index c6256103c5..c3f2bf6a3a 100644 --- a/server/postgres/src/utils.ts +++ b/server/postgres/src/utils.ts @@ -662,6 +662,7 @@ export function escape (str: T): T { if (typeof str === 'string') { // Remove all characters except a-z, A-Z, 0-9 and _ . // Add cyrillic for support old custom attributes + // eslint-disable-next-line no-useless-escape return str.replace(/[^a-zA-ZА-Яа-яЁё0-9_.:\-]/g, '') as T } return str