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

Function urlHasHttpsScheme

out/cli.cjs:51003–51008  ·  view source on GitHub ↗
(url2)

Source from the content-addressed store, hash-verified

51001 byteLength += chunk.length;
51002 }
51003 }
51004 function urlIsLocal(url2) {
51005 assert2("protocol" in url2);
51006 const protocol = url2.protocol;
51007 return protocol === "about:" || protocol === "blob:" || protocol === "data:";
51008 }
51009 function urlHasHttpsScheme(url2) {
51010 if (typeof url2 === "string") {
51011 return url2.startsWith("https:");

Callers 2

httpNetworkOrCacheFetchFunction · 0.85

Calls 1

startsWithMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…