MCPcopy
hub / github.com/di-sukharev/opencommit / removeMatchingHeaders

Function removeMatchingHeaders

out/cli.cjs:25422–25431  ·  view source on GitHub ↗
(regex, headers)

Source from the content-addressed store, hash-verified

25420 return spread3;
25421 }
25422 function removeMatchingHeaders(regex, headers) {
25423 var lastValue;
25424 for (var header in headers) {
25425 if (regex.test(header)) {
25426 lastValue = headers[header];
25427 delete headers[header];
25428 }
25429 }
25430 return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
25431 }
25432 function createErrorType(code, message, baseClass) {
25433 function CustomError(properties) {
25434 Error.captureStackTrace(this, this.constructor);

Calls 2

testMethod · 0.80
trimMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…