(content: string)
| 605 | } |
| 606 | |
| 607 | function extractCompletedItems(content: string): string[] { |
| 608 | const items: string[] = []; |
| 609 | const matches = content.matchAll(/-\s+\[x\]\s+(.+)$/gm); |
| 610 | for (const m of matches) { |
| 611 | items.push(m[1].trim()); |
| 612 | } |
| 613 | return items.slice(0, 8); |
| 614 | } |
no outgoing calls
no test coverage detected