MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / normalizeLineEndings

Function normalizeLineEndings

sdk/src/tools/apply-patch.ts:52–54  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

50}
51
52function normalizeLineEndings(input: string): string {
53 return input.replace(/\r\n/g, '\n')
54}
55
56function ensureTrailingNewline(input: string): string {
57 return input.endsWith('\n') ? input : `${input}\n`

Callers 3

patchHasIntendedChangesFunction · 0.70
buildPatchAttemptsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected