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);