MCPcopy Create free account
hub / github.com/zxlie/FeHelper / splitLines

Function splitLines

apps/json-diff/diff-utils.js:5–7  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

3}
4
5export function splitLines(text) {
6 return normalizeLineEndings(text).split('\n');
7}
8
9export function compareTextByLine(leftText, rightText) {
10 const leftLines = splitLines(leftText);

Callers 2

compareTextByLineFunction · 0.85

Calls 1

normalizeLineEndingsFunction · 0.85

Tested by

no test coverage detected