Fix matching issues for depth prompt

b38673a5cd68ab01cc8cd850fd8799620b317170

Crow <bismuthglass@protonmail.com>

2 files changed, +6 -6Ignore whitespace
public/script.js+1 -1
@@ -3164,7 +3164,7 @@ export function getCharacterCardFields({ chid = null } = {}) {
31643164 result.jailbreak = power_user.prefer_character_jailbreak ? baseChatReplace(character.data?.post_history_instructions?.trim(), name1, name2) : '';
31653165 result.version = character.data?.character_version ?? '';
31663166 result.charDepthPrompt = baseChatReplace(character.data?.extensions?.depth_prompt?.prompt?.trim(), name1, name2);
31673167 result.creatorNotes = baseChatReplace(character.data?.creator_notes?.trim(), name1, name2);
31683168
31693169 if (selected_group) {
31703170 const groupCards = getGroupCharacterCards(selected_group, Number(currentChid));
public/scripts/world-info.js+5 -5
@@ -115,11 +115,11 @@ const KNOWN_DECORATORS = ['@@activate', '@@dont_activate'];
115115 * @property {boolean} [matchWholeWords] If the scan should match whole words
116116 * @property {boolean} [useGroupScoring] If the scan should use group scoring
117117 * @property {boolean} [matchPersonaDescription] If the scan should match against the persona description
118118 * @property {boolean} [matchCharacterDescription] If the scan should match against the character description
119119 * @property {boolean} [matchCharacterPersonality] If the scan should match against the character personality
120120 * @property {boolean} [matchCharacterNotematchCharacterDepthPrompt] If the scan should match against the character notedepth prompt
121121 * @property {boolean} [matchScenario] If the scan should match against the character scenario
122122 * @property {boolean} [matchCreatorNotes] If the scan should match against the charactercreator metadatanotes
123123 * @property {number} [uid] The UID of the entry that triggered the scan
124124 * @property {string} [world] The world info book of origin of the entry
125125 * @property {string[]} [key] The primary keys to scan for
@@ -258,7 +258,7 @@ class WorldInfoBuffer {
258258 if (entry.matchCharacterPersonality) {
259259 result += JOINER + this.#globalScanDataBuffer.characterPersonality;
260260 }
261261 if (entry.matchCharacterNotematchCharacterDepthPrompt) {
262262 result += JOINER + this.#globalScanDataBuffer.characterDepthPrompt;
263263 }
264264 if (entry.matchScenario) {