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

Function hexByteToNumber

github-actions/browserstack/set-browserstack-env.js:3528–3533  ·  view source on GitHub ↗
(byte)

Source from the content-addressed store, hash-verified

3526 var encoder = new TextEncoder();
3527 var HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;
3528 var HTTP_WHITESPACE_REGEX = /[\u000A\u000D\u0009\u0020]/;
3529 var ASCII_WHITESPACE_REPLACE_REGEX = /[\u0009\u000A\u000C\u000D\u0020]/g;
3530 var HTTP_QUOTED_STRING_TOKENS = /^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;
3531 function dataURLProcessor(dataURL) {
3532 assert(dataURL.protocol === "data:");
3533 let input = URLSerializer(dataURL, true);
3534 input = input.slice(5);
3535 const position = { position: 0 };
3536 let mimeType = collectASequenceOfCodePointsFast(

Callers 1

percentDecodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected