[fix] fixed out script

This commit is contained in:
kwaroran
2023-07-07 17:06:42 +09:00
parent 4d4bee4df8
commit 7aa1387dcb

View File

@@ -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){