()
| 12 | let currentLines: string[] = []; |
| 13 | |
| 14 | const flush = () => { |
| 15 | if (currentHost === null) return; |
| 16 | |
| 17 | const account = LOGGED_IN_PATTERN.exec(currentLines.join("\n"))?.[1]?.trim() || null; |
| 18 | hosts.push({ host: currentHost, account }); |
| 19 | currentHost = null; |
| 20 | currentLines = []; |
| 21 | }; |
| 22 | |
| 23 | for (const rawLine of text.split(/\r?\n/)) { |
| 24 | const line = rawLine.trim(); |
no outgoing calls
no test coverage detected