(text: string)
| 35 | } |
| 36 | |
| 37 | export function parseMatchCounter(text: string): MatchCounter | null { |
| 38 | const match = text.match(/\b(\d+)\/(\d+)\b/) |
| 39 | if (!match) { |
| 40 | return null |
| 41 | } |
| 42 | return { |
| 43 | current: Number.parseInt(match[1]!, 10), |
| 44 | total: Number.parseInt(match[2]!, 10), |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | export function expectPromptFooterModules( |
| 49 | text: string, |
no outgoing calls
no test coverage detected