(str: string)
| 1477 | } |
| 1478 | |
| 1479 | export function stripEscapeSequences(str: string): string { |
| 1480 | return str |
| 1481 | .replace(/\x1b\[\??[0-9]{0,3}(;[0-9]{1,3})?[a-zA-Z]/g, '') |
| 1482 | .replace(/\u0008/g, '') |
| 1483 | .replace(/\r/g, ''); |
| 1484 | } |
| 1485 | |
| 1486 | export function splitLines(data: string): string[] { |
| 1487 | return data.split(/\r?\n/g); |
no outgoing calls
no test coverage detected