(text: string)
| 18 | const ANSI_PATTERN = new RegExp(`${ESC}\\[[0-9;]*m`, 'g') |
| 19 | |
| 20 | export function stripAnsi(text: string): string { |
| 21 | return text.replace(ANSI_PATTERN, '') |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Escape HTML special characters. |
no outgoing calls
no test coverage detected