(text: string, label: string)
| 368 | } |
| 369 | |
| 370 | function matchSummaryInteger(text: string, label: string): number | undefined { |
| 371 | const escapedLabel = label.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); |
| 372 | const match = text.match(new RegExp(`^\\s*${escapedLabel}:\\s*([0-9][0-9,]*)`, 'im')); |
| 373 | if (!match) return undefined; |
| 374 | const token = match[1]; |
| 375 | return token === undefined ? undefined : (parseNumericToken(token) ?? undefined); |
| 376 | } |
no test coverage detected
searching dependent graphs…