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

Function isValidStatusCode

out/cli.cjs:63098–63105  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

63096 const code = char.charCodeAt(0);
63097 if (code < 33 || code > 126 || char === "(" || char === ")" || char === "<" || char === ">" || char === "@" || char === "," || char === ";" || char === ":" || char === "\\" || char === '"' || char === "/" || char === "[" || char === "]" || char === "?" || char === "=" || char === "{" || char === "}" || code === 32 || // SP
63098 code === 9) {
63099 return false;
63100 }
63101 }
63102 return true;
63103 }
63104 function isValidStatusCode(code) {
63105 if (code >= 1e3 && code < 1015) {
63106 return code !== 1004 && // reserved
63107 code !== 1005 && // "MUST NOT be set as a status code"
63108 code !== 1006;

Callers 1

parseCloseBodyMethod · 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…