MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / escapeForDiff

Function escapeForDiff

src/utils/diff.ts:35–37  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

33const DOLLAR_TOKEN = '<<:DOLLAR_TOKEN:>>'
34
35function escapeForDiff(s: string): string {
36 return s.replaceAll('&', AMPERSAND_TOKEN).replaceAll('$', DOLLAR_TOKEN)
37}
38
39function unescapeFromDiff(s: string): string {
40 return s.replaceAll(AMPERSAND_TOKEN, '&').replaceAll(DOLLAR_TOKEN, '$')

Callers 2

getPatchFromContentsFunction · 0.85
getPatchForDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected