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

Function partition

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

Source from the content-addressed store, hash-verified

69390 const lines = [this.buffer.join("")];
69391 this.buffer = [];
69392 this.trailingCR = false;
69393 return lines;
69394 }
69395};
69396LineDecoder.NEWLINE_CHARS = /* @__PURE__ */ new Set(["\n", "\r"]);
69397LineDecoder.NEWLINE_REGEXP = /\r\n|[\n\r]/g;
69398function partition(str2, delimiter) {
69399 const index = str2.indexOf(delimiter);
69400 if (index !== -1) {
69401 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…