mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-24 06:48:02 +08:00
removing words with capital letters when punctuation is disabled
This commit is contained in:
parent
3b0175cd74
commit
b123bde96e
1 changed files with 2 additions and 1 deletions
|
|
@ -762,7 +762,8 @@ async function getNextWord(
|
|||
let regenarationCount = 0; //infinite loop emergency stop button
|
||||
while (
|
||||
regenarationCount < 100 &&
|
||||
(previousWord == randomWord ||
|
||||
((/[A-Z]/.test(randomWord) && !Config.punctuation) ||
|
||||
previousWord == randomWord ||
|
||||
previousWord2 == randomWord ||
|
||||
(Config.mode !== "custom" &&
|
||||
!Config.punctuation &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue