Fix messages with only numbers and ascii characters not being normalized (vol 2)
This commit is contained in:
parent
747fc4d638
commit
786c2e3d86
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ const REPLACED_CHARS: Record<string, RegExp> = 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue