From cf3d312eef6f5f71e11897ff145d29eefdf8067e Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Mon, 2 Mar 2026 21:00:13 -0800 Subject: [PATCH] fix: Remove overly restrictive pattern from summary extraction regex --- apps/server/src/services/spec-parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/services/spec-parser.ts b/apps/server/src/services/spec-parser.ts index 811ed925..534c17e2 100644 --- a/apps/server/src/services/spec-parser.ts +++ b/apps/server/src/services/spec-parser.ts @@ -216,7 +216,7 @@ export function extractSummary(text: string): string | null { // Check for ## Summary section (use last match) // Stop at \n## [^#] (same-level headers like "## Changes") but preserve ### subsections // (like "### Root Cause", "### Fix Applied") that belong to the summary content. - const sectionMatches = text.matchAll(/##\s*Summary\s*\n+([\s\S]*?)(?=\n## [^#]|\n\*\*|$)/gi); + const sectionMatches = text.matchAll(/##\s*Summary\s*\n+([\s\S]*?)(?=\n## [^#]|$)/gi); const sectionMatch = getLastMatch(sectionMatches); if (sectionMatch) { const content = sectionMatch[1].trim();