Merge pull request #683 from trek-e/fix/681-fractional-slice-id

fix: support fractional slice IDs (e.g. S03.5) in roadmap parser (#681)
This commit is contained in:
TÂCHES 2026-03-16 13:31:10 -06:00 committed by GitHub
commit 0ad5bebc33
2 changed files with 2 additions and 2 deletions

View file

@ -436,7 +436,7 @@ function _parsePlanImpl(content: string): SlicePlan {
let currentTask: TaskPlanEntry | null = null;
for (const line of taskLines) {
const cbMatch = line.match(/^-\s+\[([ xX])\]\s+\*\*(\w+):\s+(.+?)\*\*\s*(.*)/);
const cbMatch = line.match(/^-\s+\[([ xX])\]\s+\*\*([\w.]+):\s+(.+?)\*\*\s*(.*)/);
if (cbMatch) {
if (currentTask) tasks.push(currentTask);

View file

@ -19,7 +19,7 @@ export function parseRoadmapSlices(content: string): RoadmapSliceEntry[] {
let currentSlice: RoadmapSliceEntry | null = null;
for (const line of checkboxItems) {
const cbMatch = line.match(/^\s*-\s+\[([ xX])\]\s+\*\*(\w+):\s+(.+?)\*\*\s*(.*)/);
const cbMatch = line.match(/^\s*-\s+\[([ xX])\]\s+\*\*([\w.]+):\s+(.+?)\*\*\s*(.*)/);
if (cbMatch) {
if (currentSlice) slices.push(currentSlice);