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

Function isValidReasonPhrase

github-actions/saucelabs/set-saucelabs-env.js:4288–4298  ·  view source on GitHub ↗
(statusText)

Source from the content-addressed store, hash-verified

4286 if (urlIsHttpHttpsScheme(url) && badPortsSet.has(url.port)) {
4287 return "blocked";
4288 }
4289 return "allowed";
4290 }
4291 function isErrorLike(object) {
4292 var _a, _b;
4293 return object instanceof Error || (((_a = object == null ? void 0 : object.constructor) == null ? void 0 : _a.name) === "Error" || ((_b = object == null ? void 0 : object.constructor) == null ? void 0 : _b.name) === "DOMException");
4294 }
4295 function isValidReasonPhrase(statusText) {
4296 for (let i = 0; i < statusText.length; ++i) {
4297 const c = statusText.charCodeAt(i);
4298 if (!(c === 9 || // HTAB
4299 c >= 32 && c <= 126 || // SP / VCHAR
4300 c >= 128 && c <= 255)) {
4301 return false;

Callers 1

initializeResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected