mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 05:17:51 +08:00
added no-break space to the text cleaning function. closes #1848
This commit is contained in:
parent
1d89d47615
commit
c60dec25fd
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue