not lowercasing german words

This commit is contained in:
Miodec 2022-09-08 20:08:41 +02:00
parent d1fbc21c1e
commit effa5035aa

View file

@ -827,7 +827,8 @@ async function getNextWord(
if (
Config.mode !== "custom" &&
/[A-Z]/.test(randomWord) &&
!Config.punctuation
!Config.punctuation &&
!Config.language.startsWith("german")
) {
randomWord = randomWord.toLowerCase();
}