We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 198db2f commit d3b2e07Copy full SHA for d3b2e07
lib/sig.js
@@ -55,7 +55,8 @@ exports.extractFunctions = body => {
55
}
56
};
57
const extractNCode = () => {
58
- const functionName = utils.between(body, `&&(b=a.get("n"))&&(b=`, `(b)`);
+ let functionName = utils.between(body, `&&(b=a.get("n"))&&(b=`, `(b)`);
59
+ if (functionName.includes('[')) functionName = utils.between(body, `${functionName.split('[')[0]}=[`, `]`);
60
if (functionName && functionName.length) {
61
const functionStart = `${functionName}=function(a)`;
62
const ndx = body.indexOf(functionStart);
0 commit comments