(str: string)
| 380 | |
| 381 | const ansiRegex = /\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x1B]*\x1B\\?)/g |
| 382 | export function stripAnsi(str: string): string { |
| 383 | return str.replace(ansiRegex, '') |
| 384 | } |
| 385 | |
| 386 | export function includesMatch( |
| 387 | array: (string | RegExp)[], |
no outgoing calls