(text: string)
| 147 | const AUTH_URL_TITLE_RE = /Authenticate your account at:\s*(https?:\/\/\S+)/ |
| 148 | |
| 149 | function stripAnsi(text: string): string { |
| 150 | // eslint disabled because we need escape characters in regex |
| 151 | // eslint-disable-next-line no-control-regex, regexp/no-obscure-range |
| 152 | return text.replace(/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g, '') |
| 153 | } |
| 154 | |
| 155 | const AUTH_URL_TIMEOUT_MS = 90_000 |
| 156 |
no outgoing calls
no test coverage detected