diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts index 18021212..c94adf9b 100644 --- a/scripts/generateReport.ts +++ b/scripts/generateReport.ts @@ -268,7 +268,7 @@ function runTime(token: string) { const { wreq } = Vencord.Webpack; console.error("[PUP_DEBUG]", "Loading all chunks..."); - const ids = Function("return" + wreq.u.toString().match(/\{.+\}/s)![0])(); + const ids = Function("return" + wreq.u.toString().match(/(?<=\()\{.+?\}/s)![0])(); for (const id in ids) { const isWasm = await fetch(wreq.p + wreq.u(id)) .then(r => r.text())