MCPcopy Create free account
hub / github.com/TanStack/query / isRelativeLink

Function isRelativeLink

scripts/verify-links.ts:14–23  ·  view source on GitHub ↗
(link: string)

Source from the content-addressed store, hash-verified

12}> = []
13
14function isRelativeLink(link: string) {
15 return (
16 !link.startsWith('/') &&
17 !link.startsWith('http://') &&
18 !link.startsWith('https://') &&
19 !link.startsWith('//') &&
20 !link.startsWith('#') &&
21 !link.startsWith('mailto:')
22 )
23}
24
25/** Remove any trailing .md */
26function stripExtension(p: string): string {

Callers 1

verifyMarkdownLinksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected