diff --git a/www/js/plugins/JsScript54Set.js b/www/js/plugins/JsScript54Set.js index 1fd775f..510d770 100644 --- a/www/js/plugins/JsScript54Set.js +++ b/www/js/plugins/JsScript54Set.js @@ -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; }