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

Function detectLineEnding

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

Source from the content-addressed store, hash-verified

68}
69
70function detectLineEnding(content: string): LineEnding {
71 return content.includes("\r\n") ? "\r\n" : "\n"
72}
73
74function normalizeToLF(content: string): string {
75 return content.replace(/\r\n/g, "\n")

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected