(content, label)
| 402 | return String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); |
| 403 | } |
| 404 | |
| 405 | function extractReportLines(content, label) { |
| 406 | const pattern = new RegExp(`^(?:[-*]\\s*)?\\s*${escapeRegExp(label)}:\\s*(.+)$`, 'gim'); |
| 407 | return Array.from(content.matchAll(pattern)).map((match) => match[1].trim()); |
| 408 | } |
| 409 | |
| 410 | function extractReportLine(content, label) { |
no test coverage detected