replacing spaces instead of whitespace. closes #1863

This commit is contained in:
Jack 2021-09-15 18:43:06 +01:00
parent 2025beb4da
commit 6fd501ddf2

View file

@ -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 = "";