fix regex
This commit is contained in:
parent
22c73f4908
commit
3bb80f4f66
1 changed files with 2 additions and 2 deletions
|
|
@ -220,12 +220,12 @@ class N_Func {
|
|||
}
|
||||
}
|
||||
let RPG_NFunc_Function = function (_script) {
|
||||
let _Func = new Function("_ck_this" , _script.replace(/this./g, '_ck_this.'));
|
||||
let _Func = new Function("_ck_this" , _script.replace(/\bthis\./g, '_ck_this.'));
|
||||
let _NFunc = new N_Func(_script , _Func);
|
||||
return _NFunc;
|
||||
}
|
||||
let RPG_NFunc_Return = function (_script) {
|
||||
let _Func = new Function("_ck_this" , "return " + _script.replace(/this./g, '_ck_this.'));
|
||||
let _Func = new Function("_ck_this" , "return " + _script.replace(/\bthis\./g, '_ck_this.'));
|
||||
let _NFunc = new N_Func(_script , _Func);
|
||||
return _NFunc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue