From a39fbee4ff7207a899617b9426262f7d47f0c7a5 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Mon, 3 Jun 2024 17:24:02 +0900 Subject: [PATCH] refactor: Remove lorebook comments and convert text to lowercase --- src/ts/process/lorebook.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ts/process/lorebook.ts b/src/ts/process/lorebook.ts index ecaec4e4..900674a3 100644 --- a/src/ts/process/lorebook.ts +++ b/src/ts/process/lorebook.ts @@ -254,6 +254,7 @@ export async function loadLoreBookV3Prompt(){ } mText = mText.toLocaleLowerCase() + mText = mText.replace(/\{\{\/\/(.+?)\}\}/g,'').replace(/\{\{comment:(.+?)\}\}/g,'') if(arg.fullWordMatching){ const splited = mText.split(' ')