(str: string)
| 375 | |
| 376 | const ansiColorsRegex = /\x1B\[[0-9;]*m/g |
| 377 | export function stripColors(str: string): string { |
| 378 | return str.replace(ansiColorsRegex, '') |
| 379 | } |
| 380 | |
| 381 | const ansiRegex = /\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x1B]*\x1B\\?)/g |
| 382 | export function stripAnsi(str: string): string { |
no outgoing calls
no test coverage detected