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

Function parseTokens

out/cli.cjs:72018–72026  ·  view source on GitHub ↗
(str2)

Source from the content-addressed store, hash-verified

72016 return header && String(header).trim().toLowerCase();
72017}
72018function normalizeValue2(value) {
72019 if (value === false || value == null) {
72020 return value;
72021 }
72022 return utils_default.isArray(value) ? value.map(normalizeValue2) : String(value);
72023}
72024function parseTokens(str2) {
72025 const tokens = /* @__PURE__ */ Object.create(null);
72026 const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
72027 let match;
72028 while (match = tokensRE.exec(str2)) {
72029 tokens[match[1]] = match[2];

Callers 1

getMethod · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…