Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
70
function
detectLineEnding(content: string): LineEnding {
71
return
content.includes(
"\r\n"
) ?
"\r\n"
:
"\n"
72
}
73
74
function
normalizeToLF(content: string): string {
75
return
content.replace(/\r\n/g,
"\n"
)
Callers
1
execute
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected