Skip to content

Commit e1ebdf9

Browse files
fix: remove n-transform function name ambiguity (#1242)
* Add files via upload N transform function name fix * Add files via upload * Update sig.js * Update sig.js removes n-transform function name ambiguity
1 parent 0d3f91b commit e1ebdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ exports.extractFunctions = body => {
5656
};
5757
const extractNCode = () => {
5858
let functionName = utils.between(body, `&&(b=a.get("n"))&&(b=`, `(b)`);
59-
if (functionName.includes('[')) functionName = utils.between(body, `${functionName.split('[')[0]}=[`, `]`);
59+
if (functionName.includes('[')) functionName = utils.between(body, `var ${functionName.split('[')[0]}=[`, `]`);
6060
if (functionName && functionName.length) {
6161
const functionStart = `${functionName}=function(a)`;
6262
const ndx = body.indexOf(functionStart);

0 commit comments

Comments
 (0)