Transform WI haystack after regex matching

This commit is contained in:
Cohee 2024-05-20 13:44:12 +03:00
parent ed2e7a2f47
commit df2710bcbe
1 changed files with 2 additions and 1 deletions

View File

@ -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;