MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / getInvocations

Function getInvocations

@commitlint/travis-cli/src/cli.test.ts:142–155  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

140});
141
142function getInvocations(stdout: string): string[][] {
143 const matches = stdout.match(/[^[\]]+/g);
144 const raw = Array.isArray(matches) ? matches : [];
145
146 return raw
147 .filter((invocation) => invocation !== "\n")
148 .map((invocation) =>
149 invocation
150 .split(",")
151 .map((fragment) => fragment.trim())
152 .map((fragment) => fragment.substring(1, fragment.length - 1))
153 .filter(Boolean),
154 );
155}

Callers 1

cli.test.tsFile · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected