MCPcopy Create free account
hub / github.com/TruthHun/BookStack / startOfLineClean

Function startOfLineClean

static/editor.md/lib/codemirror/addon/merge/merge.js:601–608  ·  view source on GitHub ↗
(diff, i)

Source from the content-addressed store, hash-verified

599 }
600
601 function startOfLineClean(diff, i) {
602 if (i == 0) return true;
603 var last = diff[i - 1][1];
604 if (last.charCodeAt(last.length - 1) != 10) return false;
605 if (i == 1) return true;
606 last = diff[i - 2][1];
607 return last.charCodeAt(last.length - 1) == 10;
608 }
609
610 function chunkBoundariesAround(chunks, n, nInEdit) {
611 var beforeE, afterE, beforeO, afterO;

Callers 2

markChangesFunction · 0.85
getChunksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected