mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-21 13:06:01 +08:00
allowing capitals in custom
This commit is contained in:
parent
6d4ec0182b
commit
cd1c6aabb6
1 changed files with 3 additions and 1 deletions
|
@ -763,7 +763,9 @@ async function getNextWord(
|
|||
let regenarationCount = 0; //infinite loop emergency stop button
|
||||
while (
|
||||
regenarationCount < 100 &&
|
||||
((/[A-Z]/.test(randomWord) && !Config.punctuation) ||
|
||||
((Config.mode !== "custom" &&
|
||||
/[A-Z]/.test(randomWord) &&
|
||||
!Config.punctuation) ||
|
||||
previousWord == randomWord ||
|
||||
previousWord2 == randomWord ||
|
||||
(Config.mode !== "custom" &&
|
||||
|
|
Loading…
Add table
Reference in a new issue