MCPcopy
hub / github.com/di-sukharev/opencommit / parseURL

Function parseURL

out/cli.cjs:6780–6785  ·  view source on GitHub ↗
(urlStr)

Source from the content-addressed store, hash-verified

6778 var parse_url = Url.parse;
6779 var format_url = Url.format;
6780 function parseURL(urlStr) {
6781 if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
6782 urlStr = new URL3(urlStr).toString();
6783 }
6784 return parse_url(urlStr);
6785 }
6786 var streamDestructionSupported = "destroy" in Stream3.Readable.prototype;
6787 function isRequest2(input) {
6788 return typeof input === "object" && typeof input[INTERNALS$2] === "object";

Callers 2

constructorMethod · 0.85
parseOriginFunction · 0.85

Calls 5

testMethod · 0.80
isFiniteMethod · 0.80
endsWithMethod · 0.80
startsWithMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…