MCPcopy Index your code
hub / github.com/continuedev/continue / linesMatch

Function linesMatch

core/edit/lazy/unifiedDiffApply.ts:165–169  ·  view source on GitHub ↗

* Returns true if the two lines are either exactly equal or equal after trimming whitespace and tabs.

(a: string, b: string)

Source from the content-addressed store, hash-verified

163 * Returns true if the two lines are either exactly equal or equal after trimming whitespace and tabs.
164 */
165function linesMatch(a: string, b: string): boolean {
166 const trimmedA = a.replace(/^\s+/, "");
167 const trimmedB = b.replace(/^\s+/, "");
168 return trimmedA === trimmedB;
169}

Callers 1

findHunkInSourceFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected