MCPcopy Index your code
hub / github.com/simstudioai/sim / splitLinesForGrep

Function splitLinesForGrep

apps/sim/lib/copilot/vfs/operations.ts:101–103  ·  view source on GitHub ↗

* Splits VFS text into lines for line-oriented grep. Strips a trailing CR so Windows-style * CRLF payloads still match patterns anchored at line end (`$`).

(content: string)

Source from the content-addressed store, hash-verified

99 * CRLF payloads still match patterns anchored at line end (`$`).
100 */
101function splitLinesForGrep(content: string): string[] {
102 return content.split('\n').map((line) => line.replace(/\r$/, ''))
103}
104
105/**
106 * Returns true when `filePath` is `scope` or a descendant path (`scope/...`). If `scope` contains

Callers 1

grepFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected