diff --git a/frontend/src/ts/test/test-logic.ts b/frontend/src/ts/test/test-logic.ts index bda5fc500..54a4653e6 100644 --- a/frontend/src/ts/test/test-logic.ts +++ b/frontend/src/ts/test/test-logic.ts @@ -997,7 +997,7 @@ export async function init(): Promise { TestWords.setHasTab(true); } - const te = randomWord.replace(/\n/g, "\n ").replace(/ $/gm, ""); + const te = randomWord.replace(/\n/g, "\n ").replace(/ $/g, ""); if (/ +/.test(te)) { const randomList = te.split(" ");