fix regex

This commit is contained in:
dazedanon 2026-02-16 22:21:54 -06:00
parent 22c73f4908
commit 3bb80f4f66

View file

@ -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;
}