Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pingcap/docs-cn
/ toTargetRel
Function
toTargetRel
scripts/verify-internal-links-in-toc.js:56–58 ·
view source on GitHub ↗
(url = "")
Source
from the content-addressed store, hash-verified
54
}
55
56
function
toTargetRel(url =
""
) {
57
return
stripQueryAndHash(url).path.replace(/^\/+/,
""
);
58
}
59
60
function
extractInternalDocTargetsFromUrls(urls = []) {
61
return
urls
Callers
1
extractInternalDocTargetsFromUrls
Function · 0.85
Calls
1
stripQueryAndHash
Function · 0.85
Tested by
no test coverage detected