(text: string, label: string)
| 384 | } |
| 385 | |
| 386 | function matchLabeledNumber(text: string, label: string): number | undefined { |
| 387 | const escapedLabel = label.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); |
| 388 | const match = text.match(new RegExp(`${escapedLabel}:\\s*([0-9][0-9,]*)`, 'i')); |
| 389 | if (!match) return undefined; |
| 390 | const token = match[1]; |
| 391 | return token === undefined ? undefined : (parseNumericToken(token) ?? undefined); |
| 392 | } |
| 393 | |
| 394 | function matchTotalRowPss(text: string): number | undefined { |
| 395 | for (const rawLine of text.split('\n')) { |
no test coverage detected
searching dependent graphs…