mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 07:44:01 +08:00
regenerating word if it contains punctutaion but punctuation is disabled
This commit is contained in:
parent
e82dbff2b1
commit
2263c5d069
1 changed files with 2 additions and 1 deletions
|
@ -697,7 +697,8 @@ async function getNextWord(
|
|||
regenarationCount < 100 &&
|
||||
(previousWord == randomWord ||
|
||||
previousWord2 == randomWord ||
|
||||
(!Config.punctuation && randomWord == "I"))
|
||||
(!Config.punctuation && randomWord == "I") ||
|
||||
(!Config.punctuation && /[-=_+[\]{};'\\:"|,./<>?]/i.test(randomWord)))
|
||||
) {
|
||||
regenarationCount++;
|
||||
randomWord = wordset.randomWord();
|
||||
|
|
Loading…
Reference in a new issue