little fix

This commit is contained in:
Jack 2020-12-08 18:41:55 +00:00
parent 66cc086836
commit a32011f7d3

View file

@ -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(" ");