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

Function partition2

out/cli.cjs:80336–80342  ·  view source on GitHub ↗
(str2, delimiter)

Source from the content-addressed store, hash-verified

80334 const lines = [this.buffer.join("")];
80335 this.buffer = [];
80336 this.trailingCR = false;
80337 return lines;
80338 }
80339};
80340LineDecoder2.NEWLINE_CHARS = /* @__PURE__ */ new Set(["\n", "\r"]);
80341LineDecoder2.NEWLINE_REGEXP = /\r\n|[\n\r]/g;
80342function partition2(str2, delimiter) {
80343 const index = str2.indexOf(delimiter);
80344 if (index !== -1) {
80345 return [str2.substring(0, index), delimiter, str2.substring(index + delimiter.length)];

Callers 1

decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…