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

Function safeUrl

github-actions/bazel/configure-remote/configure-remote.js:10951–10962  ·  view source on GitHub ↗
(path5)

Source from the content-addressed store, hash-verified

10949 var {
10950 types: {
10951 isPromise
10952 }
10953 } = __require("util");
10954 function matchValue(match, value) {
10955 if (typeof match === "string") {
10956 return match === value;
10957 }
10958 if (match instanceof RegExp) {
10959 return match.test(value);
10960 }
10961 if (typeof match === "function") {
10962 return match(value) === true;
10963 }
10964 return false;
10965 }

Callers 1

getMockDispatchFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected