File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ module.exports = function () {
76
76
}
77
77
78
78
const decode = eval ( targetName ) ;
79
- const quoType = code . match ( new RegExp ( `${ targetName } \\((.)[a-zA-Z0-9]+.,.[^']+.\\)` ) ) [ 1 ] ;
79
+ const quoType = code . match ( new RegExp ( `${ targetName } \\((.)[a-zA-Z0-9]+.,\\s* .[^']+.\\)` ) ) [ 1 ] ;
80
80
// there are 2 types like _0x4763("0x120b","EEc$") or _0x4763('0x120b','EEc$')
81
81
// so quotation type check is needed
82
82
const regArg = `${ targetName } \\(.([a-zA-Z0-9]+).,\\s*.([^${ quoType } ]+).\\)` ;
@@ -107,7 +107,7 @@ module.exports = function () {
107
107
. replace ( / \] / g, "\\]" )
108
108
. replace ( / \^ / g, "\\^" )
109
109
. replace ( / \* / g, "\\*" ) ;
110
- regex = new RegExp ( `${ targetName } \\(.${ m [ 1 ] } .,.${ m [ 2 ] } .\\)` , "g" ) ;
110
+ regex = new RegExp ( `${ targetName } \\(.${ m [ 1 ] } .,\\s* .${ m [ 2 ] } .\\)` , "g" ) ;
111
111
code = code . replace ( regex , `'${ val } '` ) ;
112
112
regex = defaultRegex ;
113
113
}
You can’t perform that action at this time.
0 commit comments