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

Function compareBase64Mixed

github-actions/browserstack/set-browserstack-env.js:4582–4595  ·  view source on GitHub ↗
(actualValue, expectedValue)

Source from the content-addressed store, hash-verified

4580 let pos = 0;
4581 for (let i = 0; i < metadataList.length; ++i) {
4582 if (metadataList[i].algo === algorithm) {
4583 metadataList[pos++] = metadataList[i];
4584 }
4585 }
4586 metadataList.length = pos;
4587 return metadataList;
4588 }
4589 function compareBase64Mixed(actualValue, expectedValue) {
4590 if (actualValue.length !== expectedValue.length) {
4591 return false;
4592 }
4593 for (let i = 0; i < actualValue.length; ++i) {
4594 if (actualValue[i] !== expectedValue[i]) {
4595 if (actualValue[i] === "+" && expectedValue[i] === "-" || actualValue[i] === "/" && expectedValue[i] === "_") {
4596 continue;
4597 }
4598 return false;

Callers 1

bytesMatchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected