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

Function stripExtension

scripts/verify-links.ts:26–28  ·  view source on GitHub ↗

Remove any trailing .md

(p: string)

Source from the content-addressed store, hash-verified

24
25/** Remove any trailing .md */
26function stripExtension(p: string): string {
27 return p.replace(`${extname(p)}`, '')
28}
29
30function relativeLinkExists(link: string, file: string): boolean {
31 // Remove hash if present

Callers 1

relativeLinkExistsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected