mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Transform WI haystack after regex matching
This commit is contained in:
@@ -186,7 +186,7 @@ class WorldInfoBuffer {
|
||||
result += '\n' + this.#recurseBuffer.join('\n');
|
||||
}
|
||||
|
||||
return this.#transformString(result, entry);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -204,6 +204,7 @@ class WorldInfoBuffer {
|
||||
}
|
||||
|
||||
// Otherwise we do normal matching of plaintext with the chosen entry settings
|
||||
haystack = this.#transformString(haystack, entry);
|
||||
const transformedString = this.#transformString(needle, entry);
|
||||
const matchWholeWords = entry.matchWholeWords ?? world_info_match_whole_words;
|
||||
|
||||
|
Reference in New Issue
Block a user