fix(roadmap): prevent milestone version substring matches

This commit is contained in:
Tom Boucher
2026-05-06 20:37:18 -04:00
parent b093301d7d
commit ca148036d2
2 changed files with 26 additions and 1 deletions

View File

@@ -201,7 +201,7 @@ export async function extractCurrentMilestone(content: string, projectDir: strin
// Find section matching this version
const escapedVersion = escapeRegex(version);
const sectionPattern = new RegExp(
`(^#{1,3}\\s+.*${escapedVersion}[^\\n]*)`,
`(^#{1,3}\\s+.*${escapedVersion}(?![\\d.])[^\\n]*)`,
'mi'
);
const sectionMatch = content.match(sectionPattern);