removing words with capital letters when punctuation is disabled

This commit is contained in:
Miodec 2022-08-28 16:20:56 +02:00
parent 3b0175cd74
commit b123bde96e

View file

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