True if the section's header names a Requirements section.
(text: str)
| 96 | |
| 97 | |
| 98 | def is_requirements_section(text: str) -> bool: |
| 99 | """True if the section's header names a Requirements section.""" |
| 100 | return bool(re.match(r"#+\s+requirements\b", text.lstrip(), re.IGNORECASE)) |
| 101 | |
| 102 | |
| 103 | # Coverage record: (section_idx, start, end, src_file, src_line) |