From ac040f20c6b8efeb3b9e8020fbf220f73c663400 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 31 Aug 2025 08:31:12 +0800 Subject: [PATCH 1/2] fix: add $ to regexp --- server/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.ts b/server/main.ts index 6d4c2df..f7ccaa9 100644 --- a/server/main.ts +++ b/server/main.ts @@ -11,7 +11,7 @@ import transform from './compiler/transform.ts' const app = express() app.use((req, res, next) => { const url = req.originalUrl || req.url - if (/\.(j|t)sx?/.test(url)) + if (/\.(j|t)sx?$/.test(url)) res.setHeader('Content-Type', 'application/javascript') next() }) From 70af48db03b051cdb0833220e384911c2b314cc1 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 31 Aug 2025 08:46:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=20node=5Fmodule?= =?UTF-8?q?s=20=E7=9A=84=20ignore=20(=E5=9B=A0=E7=82=BA=E5=A3=93=E6=A0=B9?= =?UTF-8?q?=E4=B8=8D=E6=9C=83=E8=A2=AB=E5=89=B5=E5=BB=BA=E4=BA=86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 33ac004..ce573a7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,3 @@ thewhitesilk_config.json thewhitesilk_data/ deno.lock -node_modules/ \ No newline at end of file