[fix] fix formating for var

This commit is contained in:
kwaroran
2023-07-16 03:30:13 +09:00
parent 9590307d31
commit 0ca21feb57

View File

@@ -100,6 +100,7 @@ export const replacePlaceholders = (msg:string, name:string) => {
let currentChar = db.characters[selectedChar]
return msg .replace(/({{char}})|({{Char}})|(<Char>)|(<char>)/gi, currentChar.name)
.replace(/({{user}})|({{User}})|(<User>)|(<user>)/gi, db.username)
.replace(/(\{\{((set)|(get))var::.+?\}\})/gu,'')
}
function selectFileByDom(allowedExtensions:string[], multiple:'multiple'|'single' = 'single') {