refactor: Improve lowLevelAccess check in importCharacterCardSpec

This commit is contained in:
kwaroran
2024-05-29 14:02:51 +09:00
parent e604aa4cda
commit 4bc0d51854

View File

@@ -266,7 +266,8 @@ export async function loadLoreBookV3Prompt(){
else{
mText = mText.replace(/ /g,'')
for(const key of arg.keys){
if(mText.includes(key.toLocaleLowerCase())){
const realKey = key.toLocaleLowerCase().replace(/ /g,'')
if(mText.includes(realKey)){
return true
}
}