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

Function isWrappedAtHeader

sdk/src/tools/apply-patch.ts:108–110  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

106}
107
108function isWrappedAtHeader(line: string): boolean {
109 return /^@@.*@@(?: .*)?$/.test(line)
110}
111
112function parseCreateDiff(lines: string[]): string {
113 // Keep compatibility with unified create payloads by ignoring common diff headers.

Callers 1

parseUpdateDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected