(content: string, sourceFile: string)
| 42 | } |
| 43 | |
| 44 | export function parseCrossLinks(content: string, sourceFile: string): CrossLink[] { |
| 45 | const crossLinks: CrossLink[] = []; |
| 46 | for (const match of content.matchAll(CROSS_LINK_RE)) { |
| 47 | crossLinks.push({ hubName: match[1].trim(), sourceFile }); |
| 48 | } |
| 49 | return crossLinks; |
| 50 | } |
| 51 | |
| 52 | export function extractFeatureTag(content: string): string | null { |
| 53 | const match = content.match(HEADER_FEATURE_RE); |
no outgoing calls
no test coverage detected