mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
fixed a tiny bug where capital I would not be removed if punctuation mode is off
This commit is contained in:
parent
9c76cdd807
commit
107c127f7e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue