MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / escapeForDiff

Function escapeForDiff

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

Source from the content-addressed store, hash-verified

35const DOLLAR_TOKEN = '<<:DOLLAR_TOKEN:>>'
36
37function escapeForDiff(s: string): string {
38 return s.replaceAll('&', AMPERSAND_TOKEN).replaceAll('$', DOLLAR_TOKEN)
39}
40
41function unescapeFromDiff(s: string): string {
42 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