MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / normalizeToLF

Function normalizeToLF

src/core/tools/EditFileTool.ts:74–76  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

72}
73
74function normalizeToLF(content: string): string {
75 return content.replace(/\r\n/g, "\n")
76}
77
78function restoreLineEnding(contentLF: string, eol: LineEnding): string {
79 if (eol === "\n") return contentLF

Callers 1

executeMethod · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected