(line: string)
| 273 | } |
| 274 | |
| 275 | function parseStatusCode(line: string): number | null { |
| 276 | for (const pattern of STATUS_PATTERNS) { |
| 277 | const match = pattern.exec(line); |
| 278 | if (!match) continue; |
| 279 | const value = Number.parseInt(match[1] ?? '', 10); |
| 280 | if (Number.isInteger(value)) return value; |
| 281 | } |
| 282 | return null; |
| 283 | } |
| 284 | |
| 285 | function parseTimestamp(line: string): string | undefined { |
| 286 | const isoMatch = /\b\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z)?\b/.exec(line); |
no outgoing calls
no test coverage detected
searching dependent graphs…