fix the regex
This commit is contained in:
parent
7e740c99dc
commit
943b11869c
@ -21,7 +21,7 @@ const getRom = async (inputFile: string) => {
|
|||||||
|
|
||||||
await fs.promises.rm(dir, {recursive: true, force: true});
|
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) {
|
if (!match) {
|
||||||
console.log("BEGIN js contents --------------------------------------------");
|
console.log("BEGIN js contents --------------------------------------------");
|
||||||
console.log(js);
|
console.log(js);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user