From 3bb80f4f66a51f9256596a10518a8792ae296d06 Mon Sep 17 00:00:00 2001 From: dazedanon Date: Mon, 16 Feb 2026 22:21:54 -0600 Subject: [PATCH] fix regex --- www/js/plugins/JsScript54Set.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }