MCPcopy Index your code
hub / github.com/rtfpessoa/diff2html / prefixLength

Function prefixLength

src/render-utils.ts:104–106  ·  view source on GitHub ↗

* Prefix length of the hunk lines in the diff

(isCombined: boolean)

Source from the content-addressed store, hash-verified

102 * Prefix length of the hunk lines in the diff
103 */
104function prefixLength(isCombined: boolean): number {
105 return isCombined ? 2 : 1;
106}
107
108/**
109 * Escapes all required characters for safe HTML rendering

Callers 1

deconstructLineFunction · 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…