mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-16 18:46:26 +08:00
stopped capital I from appearing if punctuation mode is off. closes #11
This commit is contained in:
parent
4b05dd910a
commit
1faa3535e4
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) {
|
||||
while (randomWord == previousWord && (!config.punctuation && "I")) {
|
||||
randomWord = words[Math.floor(Math.random() * words.length)];
|
||||
}
|
||||
wordsList.push(randomWord);
|
||||
|
|
Loading…
Add table
Reference in a new issue