Skip to content

Commit d50c88a

Browse files
vicaryCopilot
andauthored
Update src/handlers/messages.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f9dde2d commit d50c88a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/handlers/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const LEADING_INJECTED_LEGACY_MEMORY_BLOCK_WITH_UUIDS =
3535
const LEADING_INJECTED_EMPTY_LEGACY_MEMORY_BLOCK =
3636
/^<memory\b(?![^>]*\bdata-uuids=)[^>]*>\s*<\/memory>(?:\r?\n){0,2}/;
3737
const LEADING_INJECTED_PERSISTENT_MEMORY_BLOCK =
38-
/^<persistent_memory\b(?=[^>]*\b(?:node_refs|fact_uuids)=(["'])[^"']+\1)[^>]*>[\s\S]*?<\/persistent_memory>(?:\r?\n){0,2}/;
38+
/^<persistent_memory\b(?=[^>]*\b(?:node_refs|fact_uuids)=(["'])[^"']*\1)[^>]*>[\s\S]*?<\/persistent_memory>(?:\r?\n){0,2}/;
3939

4040
const scrubPromptMemoryText = (text: string): string => {
4141
let scrubbed = text;

0 commit comments

Comments
 (0)