Improved playground.
h3rald h3rald@h3rald.com
Sun, 22 Dec 2024 10:43:01 +0100
2 files changed,
2 insertions(+),
2 deletions(-)
M
web/assets/hex-playground.js
→
web/assets/hex-playground.js
@@ -19,7 +19,7 @@ outputBox.textContent += text + "\n";
}; eval.addEventListener("click", (e) => { - const data = textarea.value.replace(/;.*?\n/g, ' ').replace(/#|.*?|#/mg, '').replace(/\n/mg, ' '); + const data = textarea.value.replace(/^#!.*?\n/, '').replace(/;.*?\n/g, ' ').replace(/#|.*?|#/mg, '').replace(/\n/mg, ' '); Module.pending_lines.push(data); let resolver = Module.pending_fgets.shift(); resolver(Module.pending_lines.shift());