Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
74
function
normalizeToLF(content: string): string {
75
return
content.replace(/\r\n/g,
"\n"
)
76
}
77
78
function
restoreLineEnding(contentLF: string, eol: LineEnding): string {
79
if
(eol ===
"\n"
)
return
contentLF
Callers
1
execute
Method · 0.85
Calls
1
replace
Method · 0.65
Tested by
no test coverage detected