(linkText: string)
| 1685 | } |
| 1686 | |
| 1687 | function extractInlineLinkTarget(linkText: string): string { |
| 1688 | const content = linkText.slice("{@link".length, linkText.endsWith("}") ? -1 : undefined).trim() |
| 1689 | const pipeIndex = content.indexOf("|") |
| 1690 | const beforeLabel = pipeIndex === -1 ? content : content.slice(0, pipeIndex).trim() |
| 1691 | return beforeLabel.split(/\s+/)[0] ?? "" |
| 1692 | } |
| 1693 | |
| 1694 | function malformedInlineLinks(block: JSDocBlock): Array<string> { |
| 1695 | const source = block.lines.join("\n") |
no test coverage detected