(text: string)
| 2 | import { renderStaticDiffPager } from "./staticDiffPager"; |
| 3 | |
| 4 | function stripAnsi(text: string) { |
| 5 | return text.replace(/\x1b\[[0-?]*[ -/]*[@-~]/g, ""); |
| 6 | } |
| 7 | |
| 8 | /** Remove Hunk's intentional SGR color codes while leaving unsafe controls visible. */ |
| 9 | function stripColorSgr(text: string) { |
no outgoing calls
no test coverage detected