From 7aa1387dcbce80ad81b11984e1bfa6ca186d7da9 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Fri, 7 Jul 2023 17:06:42 +0900 Subject: [PATCH] [fix] fixed out script --- src/ts/process/scripts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/process/scripts.ts b/src/ts/process/scripts.ts index f5a8a13e..00de4842 100644 --- a/src/ts/process/scripts.ts +++ b/src/ts/process/scripts.ts @@ -115,7 +115,7 @@ export function processScriptFull(char:character|groupChat, data:string, mode:Sc if(chatID !== -1){ const selchar = db.characters[get(selectedCharID)] const chat = selchar.chats[selchar.chatPage] - outScript = outScript.replace(/{{(.+?)}}/g, (v, p1:string) => { + mOut = mOut.replace(/{{(.+?)}}/g, (v, p1:string) => { if(p1 === 'previous_char_chat'){ let pointer = chatID - 1 while(pointer >= 0){