refactor: Improve lowLevelAccess check in importCharacterCardSpec
This commit is contained in:
@@ -266,7 +266,8 @@ export async function loadLoreBookV3Prompt(){
|
|||||||
else{
|
else{
|
||||||
mText = mText.replace(/ /g,'')
|
mText = mText.replace(/ /g,'')
|
||||||
for(const key of arg.keys){
|
for(const key of arg.keys){
|
||||||
if(mText.includes(key.toLocaleLowerCase())){
|
const realKey = key.toLocaleLowerCase().replace(/ /g,'')
|
||||||
|
if(mText.includes(realKey)){
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user