fixed a tiny bug where capital I would not be removed if punctuation mode is off

This commit is contained in:
Jack 2020-05-16 11:49:40 +01:00
parent 9c76cdd807
commit 107c127f7e

View file

@ -86,7 +86,7 @@ function initWords() {
for (let i = 1; i < wordsBound; i++) {
randomWord = words[Math.floor(Math.random() * words.length)];
previousWord = wordsList[i - 1];
while (randomWord == previousWord && (!config.punctuation && "I")) {
while (randomWord == previousWord && (!config.punctuation && randomWord == "I")) {
randomWord = words[Math.floor(Math.random() * words.length)];
}
wordsList.push(randomWord);