added no-break space to the text cleaning function. closes #1848

This commit is contained in:
Jack 2021-09-14 13:44:09 +01:00
parent 1d89d47615
commit c60dec25fd

View file

@ -689,8 +689,12 @@ export function cleanTypographySymbols(textToClean) {
"": "-",
"": " ",
"": " ",
" ": " ",
};
return textToClean.replace(/[“”’‘—,…«»–  ]/g, (char) => specials[char] || "");
return textToClean.replace(
/[“”’‘—,…«»–   ]/g,
(char) => specials[char] || ""
);
}
export function isUsernameValid(name) {