From 469bb047afd336b67bb39a726e40917bd8ff550c Mon Sep 17 00:00:00 2001 From: Samual Norman Date: Fri, 18 Jun 2021 17:39:35 +0100 Subject: [PATCH] fixed not converting `$FMCL` to `#FMCL` --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1fcea55..eb3581a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -565,7 +565,7 @@ export async function processScript(script: string) { script = script .replace(/\$[\w\$]+\(/g, a => a.replace("$", "#").replace(/\$/g, ".")) - .replace(/\$G[^\w]/g, a => a.replace("$", "#")) + .replace(/\$((?:G|FMCL)[^\w])/g, "#$1") .replace(/\.prototype/g, `["prototype"]`) .replace(/\.__proto__/g, `["__proto__"]`) -- knotmirror 0.0.1