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:
commit
0ad5bebc33
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue