MCPcopy Create free account
hub / github.com/Effect-TS/effect / extractInlineLinkTarget

Function extractInlineLinkTarget

packages/tools/jsdocs/src/Jsdocs.ts:1636–1641  ·  view source on GitHub ↗
(linkText: string)

Source from the content-addressed store, hash-verified

1634}
1635
1636function extractInlineLinkTarget(linkText: string): string {
1637 const content = linkText.slice("{@link".length, linkText.endsWith("}") ? -1 : undefined).trim()
1638 const pipeIndex = content.indexOf("|")
1639 const beforeLabel = pipeIndex === -1 ? content : content.slice(0, pipeIndex).trim()
1640 return beforeLabel.split(/\s+/)[0] ?? ""
1641}
1642
1643function malformedInlineLinks(block: JSDocBlock): Array<string> {
1644 const source = block.lines.join("\n")

Callers 3

malformedInlineLinksFunction · 0.85
addJSDocLinkDiagnosticsFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected