MCPcopy Index your code
hub / github.com/Waishnav/devspace / matchAt

Function matchAt

src/apply-patch.ts:231–232  ·  view source on GitHub ↗
(index: number, normalize: (value: string) => string)

Source from the content-addressed store, hash-verified

229 if (needle.length === 0) return from;
230
231 const matchAt = (index: number, normalize: (value: string) => string): boolean =>
232 needle.every((line, offset) => normalize(haystack[index + offset] ?? "") === normalize(line));
233
234 for (const normalize of [
235 (value: string) => value,

Callers 1

findSequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected