allowing capitals in custom

This commit is contained in:
Miodec 2022-08-30 14:18:55 +02:00
parent 6d4ec0182b
commit cd1c6aabb6

View file

@ -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" &&