From e9c1ef629aad10c6fa2f9d66bf5ddd2a28f64109 Mon Sep 17 00:00:00 2001 From: gatecrasher777 Date: Wed, 2 Feb 2022 10:22:55 +0200 Subject: [PATCH 1/3] Add files via upload N transform function name fix --- lib/sig.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sig.js b/lib/sig.js index 20575d0c..07a49621 100644 --- a/lib/sig.js +++ b/lib/sig.js @@ -56,6 +56,9 @@ exports.extractFunctions = body => { }; const extractNCode = () => { const functionName = utils.between(body, `&&(b=a.get("n"))&&(b=`, `(b)`); + if (functionName.includes('[')) { + functionName = utils.between(body,`${functionName.split('[')[0]}=[`,`]`); + } if (functionName && functionName.length) { const functionStart = `${functionName}=function(a)`; const ndx = body.indexOf(functionStart); From 99bbfae63e73332b989e3c7dd574903144cd7cfa Mon Sep 17 00:00:00 2001 From: gatecrasher777 Date: Wed, 2 Feb 2022 10:28:35 +0200 Subject: [PATCH 2/3] Add files via upload --- lib/sig.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/sig.js b/lib/sig.js index 07a49621..70a66a6d 100644 --- a/lib/sig.js +++ b/lib/sig.js @@ -55,10 +55,8 @@ exports.extractFunctions = body => { } }; const extractNCode = () => { - const functionName = utils.between(body, `&&(b=a.get("n"))&&(b=`, `(b)`); - if (functionName.includes('[')) { - functionName = utils.between(body,`${functionName.split('[')[0]}=[`,`]`); - } + let functionName = utils.between(body, `&&(b=a.get("n"))&&(b=`, `(b)`); + if (functionName.includes('[')) functionName = utils.between(body,`${functionName.split('[')[0]}=[`,`]`); if (functionName && functionName.length) { const functionStart = `${functionName}=function(a)`; const ndx = body.indexOf(functionStart); From 26a0c166269ed36ff213a4a8b7f34a2657d7a07f Mon Sep 17 00:00:00 2001 From: gatecrasher777 Date: Wed, 2 Feb 2022 10:35:11 +0200 Subject: [PATCH 3/3] Update sig.js --- lib/sig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sig.js b/lib/sig.js index 70a66a6d..d7454268 100644 --- a/lib/sig.js +++ b/lib/sig.js @@ -56,7 +56,7 @@ exports.extractFunctions = body => { }; const extractNCode = () => { let functionName = utils.between(body, `&&(b=a.get("n"))&&(b=`, `(b)`); - if (functionName.includes('[')) functionName = utils.between(body,`${functionName.split('[')[0]}=[`,`]`); + if (functionName.includes('[')) functionName = utils.between(body, `${functionName.split('[')[0]}=[`, `]`); if (functionName && functionName.length) { const functionStart = `${functionName}=function(a)`; const ndx = body.indexOf(functionStart);