MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / isValidReasonPhrase

Function isValidReasonPhrase

out/cli.cjs:50499–50509  ·  view source on GitHub ↗
(statusText)

Source from the content-addressed store, hash-verified

50497 if (urlIsHttpHttpsScheme(url2) && badPortsSet.has(url2.port)) {
50498 return "blocked";
50499 }
50500 return "allowed";
50501 }
50502 function isErrorLike(object) {
50503 return object instanceof Error || (object?.constructor?.name === "Error" || object?.constructor?.name === "DOMException");
50504 }
50505 function isValidReasonPhrase(statusText) {
50506 for (let i3 = 0; i3 < statusText.length; ++i3) {
50507 const c4 = statusText.charCodeAt(i3);
50508 if (!(c4 === 9 || // HTAB
50509 c4 >= 32 && c4 <= 126 || // SP / VCHAR
50510 c4 >= 128 && c4 <= 255)) {
50511 return false;
50512 }

Callers 1

initializeResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…