mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-10 00:50:43 +01:00
add comment on new code and add () for logic checks
This commit is contained in:
parent
085daaeff7
commit
f71b83b14f
@ -1779,6 +1779,7 @@ async function checkWorldInfo(chat, maxContext) {
|
||||
const secondarySubstituted = substituteParams(keysecondary);
|
||||
console.debug(`WI UID:${entry.uid}: Filtering for secondary keyword - "${secondarySubstituted}".`);
|
||||
|
||||
// Simplified AND/NOT if statement. (Proper fix for PR#1356 by Bronya)
|
||||
if (selectiveLogic === 0 && secondarySubstituted && matchKeys(textToScan, secondarySubstituted.trim()) ||
|
||||
selectiveLogic === 1 && !(secondarySubstituted && matchKeys(textToScan, secondarySubstituted.trim()))) {
|
||||
if (selectiveLogic === 0) {
|
||||
|
2494
public/scripts/world-info.js.bak
Normal file
2494
public/scripts/world-info.js.bak
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user