From 3e75096e222c29f292130b798a80d86ffb614cea Mon Sep 17 00:00:00 2001 From: Ho-spair <62695577+Ho-spair@users.noreply.github.com> Date: Fri, 25 Oct 2024 17:17:29 +0800 Subject: [PATCH] save prompt (#401) --- Fk/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Fk/util.js b/Fk/util.js index a87a27b3..730c7452 100644 --- a/Fk/util.js +++ b/Fk/util.js @@ -38,10 +38,10 @@ function processPrompt(prompt) { if (data.length > 3) { for (let i = 4; i < data.length; i++) { - raw = raw.replace(new RegExp("%arg" + (i - 2), "g"), data[i]); + raw = raw.replace(new RegExp("%arg" + (i - 2), "g"), luatr(data[i])); } - raw = raw.replace(new RegExp("%arg", "g"), data[3]); + raw = raw.replace(new RegExp("%arg", "g"), luatr(data[3])); } return raw; }