mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +00:00
Fix messages with only numbers and ascii characters not being normalized
This commit is contained in:
parent
16740c9029
commit
747fc4d638
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 = /[\w2689:.-_+()*&^%><;"'}{~,]+/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