gibberish and randomcase can now use punctuation mode

This commit is contained in:
Jack 2020-08-11 20:40:25 +01:00
parent adb4633335
commit 22ed0f2a69

View file

@ -374,9 +374,7 @@ function initWords() {
randomWord = wordset[Math.floor(Math.random() * wordset.length)];
}
}
if (config.punctuation && config.mode != "custom") {
randomWord = punctuateWord(previousWord, randomWord, i, wordsBound);
}
if (activeFunBox === "rAnDoMcAsE") {
let randomcaseword = "";
for (let i = 0; i < randomWord.length; i++) {
@ -386,16 +384,19 @@ function initWords() {
randomcaseword += randomWord[i];
}
}
wordsList.push(randomcaseword);
randomWord = randomcaseword;
} else if (activeFunBox === "gibberish") {
setPunctuation(false);
wordsList.push(getGibberish());
randomWord = getGibberish();
} else if (activeFunBox === "58008") {
setPunctuation(false);
wordsList.push(getNumbers());
} else {
wordsList.push(randomWord);
randomWord = getNumbers();
}
if (config.punctuation && config.mode != "custom") {
randomWord = punctuateWord(previousWord, randomWord, i, wordsBound);
}
wordsList.push(randomWord);
}
} else if (config.mode == "quote") {
randomQuote = quotes[Math.floor(Math.random() * quotes.length)];