(linkText: string)
| 1634 | } |
| 1635 | |
| 1636 | function 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 | |
| 1643 | function malformedInlineLinks(block: JSDocBlock): Array<string> { |
| 1644 | const source = block.lines.join("\n") |
no test coverage detected