fix the regex

This commit is contained in:
dylan 2024-03-31 14:18:58 -07:00
parent 7e740c99dc
commit 943b11869c

View File

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