MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / parseCrossLinks

Function parseCrossLinks

src/core/hub.ts:44–50  ·  view source on GitHub ↗
(content: string, sourceFile: string)

Source from the content-addressed store, hash-verified

42}
43
44export 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
52export function extractFeatureTag(content: string): string | null {
53 const match = content.match(HEADER_FEATURE_RE);

Callers 3

hub.test.mjsFile · 0.85
parseHubFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected