Fix compact summary regex replacement

This commit is contained in:
wuyang6
2026-07-07 21:21:19 +08:00
parent da8b63443b
commit f5f98688dd
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ def format_compact_summary(summary: str) -> str:
content = match.group(1).strip()
formatted = re.sub(
r'<summary>[\s\S]*?</summary>',
f'Summary:\n{content}',
lambda _: f'Summary:\n{content}',
formatted,
)