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

Function formatHeader

out/cli.cjs:72043–72047  ·  view source on GitHub ↗
(header)

Source from the content-addressed store, hash-verified

72041 if (!utils_default.isString(value)) return;
72042 if (utils_default.isString(filter2)) {
72043 return value.indexOf(filter2) !== -1;
72044 }
72045 if (utils_default.isRegExp(filter2)) {
72046 return filter2.test(value);
72047 }
72048}
72049function formatHeader(header) {
72050 return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w7, char, str2) => {

Callers 1

normalizeMethod · 0.85

Calls 3

toLowerCaseMethod · 0.80
trimMethod · 0.80
toUpperCaseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…