Merge pull request #123 from Ciarands/dev

Fix filemoon
This commit is contained in:
Jorrin 2024-03-28 23:38:27 +01:00 committed by GitHub
commit 234209e90b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export const fileMoonScraper = makeEmbed({
referer: ctx.url,
},
});
const evalCode = evalCodeRegex.exec(embedRes);
const evalCode = embedRes.match(evalCodeRegex);
if (!evalCode) throw new Error('Failed to find eval code');
const unpacked = unpack(evalCode[1]);
const file = fileRegex.exec(unpacked);