diff --git a/get-shit-done/bin/lib/roadmap.cjs b/get-shit-done/bin/lib/roadmap.cjs index 11cf4aa6e..7ce7d6e8e 100644 --- a/get-shit-done/bin/lib/roadmap.cjs +++ b/get-shit-done/bin/lib/roadmap.cjs @@ -94,7 +94,7 @@ function searchPhaseInContent(content, escapedPhase, phaseNum) { // Find the end of this section (next ## or ### phase header, or end of file) const restOfContent = content.slice(headerIndex); - const nextHeaderMatch = restOfContent.match(/\n#{2,4}\s+Phase\s+\d/i); + const nextHeaderMatch = restOfContent.match(/\n#{2,4}\s+Phase\s+[\w][\w.-]*/i); const sectionEnd = nextHeaderMatch ? headerIndex + nextHeaderMatch.index : content.length;