mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-19 20:16:04 +08:00
moved get funbox word call before splitting into section
This commit is contained in:
parent
52fe1f7efa
commit
9904cd8c34
1 changed files with 3 additions and 1 deletions
|
@ -680,6 +680,9 @@ export async function getNextWord(
|
|||
}
|
||||
randomWord = randomWord.replace(/ +/g, " ");
|
||||
randomWord = randomWord.replace(/(^ )|( $)/g, "");
|
||||
|
||||
randomWord = getFunboxWord(randomWord, wordIndex, wordset);
|
||||
|
||||
currentSection = [...randomWord.split(" ")];
|
||||
sectionHistory.push(randomWord);
|
||||
randomWord = currentSection.shift() as string;
|
||||
|
@ -715,7 +718,6 @@ export async function getNextWord(
|
|||
randomWord = randomWord.replace(/ +/gm, " ");
|
||||
randomWord = randomWord.replace(/(^ )|( $)/gm, "");
|
||||
randomWord = applyLazyModeToWord(randomWord, language);
|
||||
randomWord = getFunboxWord(randomWord, wordIndex, wordset);
|
||||
randomWord = await applyBritishEnglishToWord(randomWord);
|
||||
|
||||
if (Config.language === "swiss_german") {
|
||||
|
|
Loading…
Add table
Reference in a new issue