diff --git a/backend/src/utils/normalizeText.ts b/backend/src/utils/normalizeText.ts index d53fc240..db5db8f2 100644 --- a/backend/src/utils/normalizeText.ts +++ b/backend/src/utils/normalizeText.ts @@ -150,7 +150,7 @@ const REPLACED_CHARS: Record = Array.from(Object.entries(REPLACE {}, ); -const NORMAL_CHARS_REGEX = /[a-z2689:.-_+()*&^%><;"'}{~,]+/gim; +const NORMAL_CHARS_REGEX = /[a-z2689:.\-_+()*&^%><;"'}{~,]+/gim; function containsOnlyNormalChars(text: string) { const match = text.match(NORMAL_CHARS_REGEX);