refactor: Improve lowLevelAccess check in importCharacterCardSpec
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user