Include whitespace in containsOnlyNormalChars()
This commit is contained in:
parent
35b32e00be
commit
fca8a8dcce
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:.\-_+()*&^%><;"'}{~,]+$/i;
|
const NORMAL_CHARS_REGEX = /^[a-z2689:.\-_+()*&^%><;"'}{~,\s]+$/i;
|
||||||
|
|
||||||
function containsOnlyNormalChars(text: string) {
|
function containsOnlyNormalChars(text: string) {
|
||||||
return NORMAL_CHARS_REGEX.test(text);
|
return NORMAL_CHARS_REGEX.test(text);
|
||||||
|
|
Loading…
Add table
Reference in a new issue