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 } = {}) {
3164 result.jailbreak = power_user.prefer_character_jailbreak ? baseChatReplace(character.data?.post_history_instructions?.trim(), name1, name2) : '';3164 result.jailbreak = power_user.prefer_character_jailbreak ? baseChatReplace(character.data?.post_history_instructions?.trim(), name1, name2) : '';
3165 result.version = character.data?.character_version ?? '';3165 result.version = character.data?.character_version ?? '';
3166 result.charDepthPrompt = baseChatReplace(character.data?.extensions?.depth_prompt?.prompt?.trim(), name1, name2);3166 result.charDepthPrompt = baseChatReplace(character.data?.extensions?.depth_prompt?.prompt?.trim(), name1, name2);
3167 result.creatorNotes = baseChatReplace(character.creator_notes?.trim(), name1, name2);3167 result.creatorNotes = baseChatReplace(character.data?.creator_notes?.trim(), name1, name2);
31683168
3169 if (selected_group) {3169 if (selected_group) {
3170 const groupCards = getGroupCharacterCards(selected_group, Number(currentChid));3170 const groupCards = getGroupCharacterCards(selected_group, Number(currentChid));
public/scripts/world-info.js+5 -5
@@ -115,11 +115,11 @@ const KNOWN_DECORATORS = ['@@activate', '@@dont_activate'];
115 * @property {boolean} [matchWholeWords] If the scan should match whole words115 * @property {boolean} [matchWholeWords] If the scan should match whole words
116 * @property {boolean} [useGroupScoring] If the scan should use group scoring116 * @property {boolean} [useGroupScoring] If the scan should use group scoring
117 * @property {boolean} [matchPersonaDescription] If the scan should match against the persona description117 * @property {boolean} [matchPersonaDescription] If the scan should match against the persona description
118 * @property {boolean} [matchCharacterDescription] If the scan should match against the character118 * @property {boolean} [matchCharacterDescription] If the scan should match against the character description
119 * @property {boolean} [matchCharacterPersonality] If the scan should match against the character119 * @property {boolean} [matchCharacterPersonality] If the scan should match against the character personality
120 * @property {boolean} [matchCharacterNote] If the scan should match against the character note120 * @property {boolean} [matchCharacterDepthPrompt] If the scan should match against the character depth prompt
121 * @property {boolean} [matchScenario] If the scan should match against the character scenario121 * @property {boolean} [matchScenario] If the scan should match against the character scenario
122 * @property {boolean} [matchCreatorNotes] If the scan should match against the character metadata122 * @property {boolean} [matchCreatorNotes] If the scan should match against the creator notes
123 * @property {number} [uid] The UID of the entry that triggered the scan123 * @property {number} [uid] The UID of the entry that triggered the scan
124 * @property {string} [world] The world info book of origin of the entry124 * @property {string} [world] The world info book of origin of the entry
125 * @property {string[]} [key] The primary keys to scan for125 * @property {string[]} [key] The primary keys to scan for
@@ -258,7 +258,7 @@ class WorldInfoBuffer {
258 if (entry.matchCharacterPersonality) {258 if (entry.matchCharacterPersonality) {
259 result += JOINER + this.#globalScanDataBuffer.characterPersonality;259 result += JOINER + this.#globalScanDataBuffer.characterPersonality;
260 }260 }
261 if (entry.matchCharacterNote) {261 if (entry.matchCharacterDepthPrompt) {
262 result += JOINER + this.#globalScanDataBuffer.characterDepthPrompt;262 result += JOINER + this.#globalScanDataBuffer.characterDepthPrompt;
263 }263 }
264 if (entry.matchScenario) {264 if (entry.matchScenario) {