(content, heading)
| 417 | return lines.length > 0 ? lines[lines.length - 1] : null; |
| 418 | } |
| 419 | |
| 420 | function extractBlockLine(content, heading) { |
| 421 | const match = content.match(new RegExp(`^${escapeRegExp(heading)}\\s*\\r?\\n([^\\r\\n]+)`, 'im')); |
| 422 | return match ? match[1].trim() : null; |
| 423 | } |
| 424 | |
| 425 | function freshness(status, staleReasons) { |
no test coverage detected