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