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

Function lowerCaseEntries

out/cli.cjs:57164–57170  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

57162 if (match instanceof RegExp) {
57163 return match.test(value);
57164 }
57165 if (typeof match === "function") {
57166 return match(value) === true;
57167 }
57168 return false;
57169 }
57170 function lowerCaseEntries(headers) {
57171 return Object.fromEntries(
57172 Object.entries(headers).map(([headerName, headerValue]) => {
57173 return [headerName.toLocaleLowerCase(), headerValue];

Callers 2

getHeaderByNameFunction · 0.85
matchHeadersFunction · 0.85

Calls 1

entriesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…