(linkPath: string | undefined)
| 35 | } |
| 36 | |
| 37 | export function extractTaskLinkSubpath(linkPath: string | undefined): string | undefined { |
| 38 | if (!linkPath) return undefined; |
| 39 | const decoded = safeDecodeURIComponent(stripMarkdownPathBrackets(linkPath)); |
| 40 | const subpathIndex = decoded.search(/[#^]/); |
| 41 | if (subpathIndex === -1) return undefined; |
| 42 | return normalizeSubpathLabel(decoded.slice(subpathIndex)) || undefined; |
| 43 | } |
| 44 | |
| 45 | export function formatTaskLinkSubpathDisplayText( |
| 46 | taskTitle: string | undefined, |
no test coverage detected