MCPcopy 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
56function toTargetRel(url = "") {
57 return stripQueryAndHash(url).path.replace(/^\/+/, "");
58}
59
60function extractInternalDocTargetsFromUrls(urls = []) {
61 return urls

Callers 1

Calls 1

stripQueryAndHashFunction · 0.85

Tested by

no test coverage detected