mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
automod: fix normalize not trimming whitespace in ascii-only messages
This commit is contained in:
parent
baa3a5640e
commit
7562a886e1
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:.\-_+()*&^%><;"'}{~,\s]+$/i;
|
||||
const NORMAL_CHARS_REGEX = /^[a-z2689:.\-_+()*&^%><;"'}{~,]+$/i;
|
||||
|
||||
function containsOnlyNormalChars(text: string) {
|
||||
return NORMAL_CHARS_REGEX.test(text);
|
||||
|
|
Loading…
Add table
Reference in a new issue