mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-28 17:56:09 +08:00
fix(funbox): text altering funboxes not working with wikipedia or poetry
This commit is contained in:
parent
9b8c452064
commit
0ccf7ea920
1 changed files with 5 additions and 1 deletions
|
|
@ -478,8 +478,12 @@ export async function generateWords(
|
|||
for (let i = 0; i < funboxSection.length; i++) {
|
||||
indexes.push(i);
|
||||
}
|
||||
const ret = [];
|
||||
for (const word of funboxSection) {
|
||||
ret.push(applyFunboxesToWord(word));
|
||||
}
|
||||
return {
|
||||
words: funboxSection,
|
||||
words: ret,
|
||||
sectionIndexes: indexes,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue