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

Function isValidEncodedURL

github-actions/saucelabs/set-saucelabs-env.js:4261–4270  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

4259 location = normalizeBinaryStringToUtf8(location);
4260 }
4261 location = new URL(location, responseURL(response));
4262 }
4263 if (location && !location.hash) {
4264 location.hash = requestFragment;
4265 }
4266 return location;
4267 }
4268 function isValidEncodedURL(url) {
4269 for (let i = 0; i < url.length; ++i) {
4270 const code = url.charCodeAt(i);
4271 if (code > 126 || // Non-US-ASCII + DEL
4272 code < 32) {
4273 return false;

Callers 1

responseLocationURLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected