MCPcopy Create free account
hub / github.com/angular/dev-infra / urlIsLocal

Function urlIsLocal

github-actions/browserstack/set-browserstack-env.js:4818–4822  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

4816 });
4817 }
4818 function urlIsLocal(url) {
4819 assert("protocol" in url);
4820 const protocol = url.protocol;
4821 return protocol === "about:" || protocol === "blob:" || protocol === "data:";
4822 }
4823 function urlHasHttpsScheme(url) {
4824 return typeof url === "string" && url[5] === ":" && url[0] === "h" && url[1] === "t" && url[2] === "t" && url[3] === "p" && url[4] === "s" || url.protocol === "https:";
4825 }

Callers 1

mainFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected