Skip to content

Commit 1a33271

Browse files
committed
Apply british english after punctuation
1 parent b92121f commit 1a33271

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/ts/test/words-generator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,6 @@ export async function getNextWord(
918918
randomWord = randomWord.replace(/ +/gm, " ");
919919
randomWord = randomWord.replace(/(^ )|( $)/gm, "");
920920
randomWord = applyLazyModeToWord(randomWord, currentLanguage);
921-
randomWord = await applyBritishEnglishToWord(randomWord, previousWordRaw);
922921

923922
if (Config.language.startsWith("swiss_german")) {
924923
randomWord = randomWord.replace(/ß/g, "ss");
@@ -936,6 +935,9 @@ export async function getNextWord(
936935
wordsBound,
937936
);
938937
}
938+
939+
randomWord = await applyBritishEnglishToWord(randomWord, previousWordRaw);
940+
939941
if (Config.numbers) {
940942
if (random() < 0.1) {
941943
randomWord = GetText.getNumbers(4);

0 commit comments

Comments
 (0)