Fix matching issues for depth prompt
| @@ -3164,7 +3164,7 @@ export function getCharacterCardFields({ chid = null } = {}) { | ||
| 3164 | 3164 | result.jailbreak = power_user.prefer_character_jailbreak ? baseChatReplace(character.data?.post_history_instructions?.trim(), name1, name2) : ''; |
| 3165 | 3165 | result.version = character.data?.character_version ?? ''; |
| 3166 | 3166 | result.charDepthPrompt = baseChatReplace(character.data?.extensions?.depth_prompt?.prompt?.trim(), name1, name2); |
| 3167 | 3167 | result.creatorNotes = baseChatReplace(character.data?.creator_notes?.trim(), name1, name2); |
| 3168 | 3168 | |
| 3169 | 3169 | if (selected_group) { |
| 3170 | 3170 | const groupCards = getGroupCharacterCards(selected_group, Number(currentChid)); |
| @@ -115,11 +115,11 @@ const KNOWN_DECORATORS = ['@@activate', '@@dont_activate']; | ||
| 115 | 115 | * @property {boolean} [matchWholeWords] If the scan should match whole words |
| 116 | 116 | * @property {boolean} [useGroupScoring] If the scan should use group scoring |
| 117 | 117 | * @property {boolean} [matchPersonaDescription] If the scan should match against the persona description |
| 118 | 118 | * @property {boolean} [matchCharacterDescription] If the scan should match against the character description |
| 119 | 119 | * @property {boolean} [matchCharacterPersonality] If the scan should match against the character personality |
| 120 | 120 | * @property {boolean} [matchCharacterNotematchCharacterDepthPrompt] If the scan should match against the character notedepth prompt |
| 121 | 121 | * @property {boolean} [matchScenario] If the scan should match against the character scenario |
| 122 | 122 | * @property {boolean} [matchCreatorNotes] If the scan should match against the charactercreator metadatanotes |
| 123 | 123 | * @property {number} [uid] The UID of the entry that triggered the scan |
| 124 | 124 | * @property {string} [world] The world info book of origin of the entry |
| 125 | 125 | * @property {string[]} [key] The primary keys to scan for |
| @@ -258,7 +258,7 @@ class WorldInfoBuffer { | ||
| 258 | 258 | if (entry.matchCharacterPersonality) { |
| 259 | 259 | result += JOINER + this.#globalScanDataBuffer.characterPersonality; |
| 260 | 260 | } |
| 261 | 261 | if (entry.matchCharacterNotematchCharacterDepthPrompt) { |
| 262 | 262 | result += JOINER + this.#globalScanDataBuffer.characterDepthPrompt; |
| 263 | 263 | } |
| 264 | 264 | if (entry.matchScenario) { |