refactor: Remove lorebook comments and convert text to lowercase

This commit is contained in:
kwaroran
2024-06-03 17:24:02 +09:00
parent 5fe10cc3fe
commit a39fbee4ff

View File

@@ -254,6 +254,7 @@ export async function loadLoreBookV3Prompt(){
} }
mText = mText.toLocaleLowerCase() mText = mText.toLocaleLowerCase()
mText = mText.replace(/\{\{\/\/(.+?)\}\}/g,'').replace(/\{\{comment:(.+?)\}\}/g,'')
if(arg.fullWordMatching){ if(arg.fullWordMatching){
const splited = mText.split(' ') const splited = mText.split(' ')