mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 13:55:19 +08:00
little fix
This commit is contained in:
parent
66cc086836
commit
a32011f7d3
1 changed files with 1 additions and 1 deletions
|
@ -5027,7 +5027,7 @@ async function setupChallenge(challengeName) {
|
|||
} else if (challenge.type === "script") {
|
||||
let scriptdata = await fetch("/challenges/" + challenge.parameters[0]);
|
||||
scriptdata = await scriptdata.text();
|
||||
text = scriptdata.trim();
|
||||
let text = scriptdata.trim();
|
||||
text = text.replace(/[\n\r\t ]/gm, " ");
|
||||
text = text.replace(/ +/gm, " ");
|
||||
customText = text.split(" ");
|
||||
|
|
Loading…
Reference in a new issue