From 943b11869ce3380d4dc2672746136469ef749fd0 Mon Sep 17 00:00:00 2001 From: dylan <> Date: Sun, 31 Mar 2024 14:18:58 -0700 Subject: [PATCH] fix the regex --- src/server/util/carts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/util/carts.ts b/src/server/util/carts.ts index 0522289..0d87fde 100644 --- a/src/server/util/carts.ts +++ b/src/server/util/carts.ts @@ -21,7 +21,7 @@ const getRom = async (inputFile: string) => { await fs.promises.rm(dir, {recursive: true, force: true}); - const match = js.match(/\b_cartdat\s*=\s*(\[.*\])/); + const match = js.match(/\b_cartdat\s*=\s*(\[.*?\])/s); if (!match) { console.log("BEGIN js contents --------------------------------------------"); console.log(js);