mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-16 21:53:07 +00:00
fix: Remove overly restrictive pattern from summary extraction regex
This commit is contained in:
@@ -216,7 +216,7 @@ export function extractSummary(text: string): string | null {
|
|||||||
// Check for ## Summary section (use last match)
|
// Check for ## Summary section (use last match)
|
||||||
// Stop at \n## [^#] (same-level headers like "## Changes") but preserve ### subsections
|
// Stop at \n## [^#] (same-level headers like "## Changes") but preserve ### subsections
|
||||||
// (like "### Root Cause", "### Fix Applied") that belong to the summary content.
|
// (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);
|
const sectionMatch = getLastMatch(sectionMatches);
|
||||||
if (sectionMatch) {
|
if (sectionMatch) {
|
||||||
const content = sectionMatch[1].trim();
|
const content = sectionMatch[1].trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user