mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 01:15:49 +08:00
replacing spaces instead of whitespace. closes #1863
This commit is contained in:
parent
2025beb4da
commit
6fd501ddf2
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ export async function init() {
|
|||
}
|
||||
|
||||
randomWord = randomWord.replace(/ +/gm, " ");
|
||||
randomWord = randomWord.replace(/^\s+|\s+$/gm, "");
|
||||
randomWord = randomWord.replace(/^ | $/gm, "");
|
||||
|
||||
if (Config.funbox === "rAnDoMcAsE") {
|
||||
let randomcaseword = "";
|
||||
|
|
Loading…
Reference in a new issue