From 40e5794bdf747adc1838421fe5f60810126fd96f Mon Sep 17 00:00:00 2001 From: Cloudnyco <74037807+Cloudnyco@users.noreply.github.com> Date: Sun, 11 Oct 2026 13:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E4=B8=80=E8=87=B4=E6=80=A7?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=EF=BC=9A=E4=B8=8B=E8=BD=BD=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=96=87=E4=BB=B6=E5=90=8D=E4=B8=8D=E5=90=AB=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/dev/simcheck/ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/dev/simcheck/ui.js b/public/dev/simcheck/ui.js index b838387f..ff875dc8 100644 --- a/public/dev/simcheck/ui.js +++ b/public/dev/simcheck/ui.js @@ -161,7 +161,8 @@ function mountCheck(root, o) { const tr = tracer(o.adapter, o.scenarios.find((x) => x.id === r.id), { every, deepEvery, dump: [r.c.at.from, r.c.at.to] }); while (!tr.advance(25)) await yieldTask(); const got = tr.finish(); - download(`simcheck-${o.project}-${r.id}-${r.c.at.from}.json`, JSON.stringify({ simcheck: VERSION, project: o.project, id: r.id, window: [r.c.at.from, r.c.at.to], + // (the project's name as a file name: letters, digits and CJK, the rest a dash) + download(`simcheck-${String(o.project).replace(/[^\w\u4e00-\u9fff]+/g, '-').toLowerCase()}-${r.id}-${r.c.at.from}.json`, JSON.stringify({ simcheck: VERSION, project: o.project, id: r.id, window: [r.c.at.from, r.c.at.to], engine, ua: navigator.userAgent, dumps: got.dumps })); btn.disabled = false; btn.textContent = old; };