(lines: list[str], line_index: int)
| 493 | |
| 494 | |
| 495 | def subsection_name_for_line(lines: list[str], line_index: int) -> str: |
| 496 | current_subsection = "" |
| 497 | for idx in range(0, line_index + 1): |
| 498 | stripped = lines[idx].strip() |
| 499 | if re.match(r"^##\s+.+$", stripped): |
| 500 | current_subsection = "" |
| 501 | continue |
| 502 | match = re.match(r"^###\s+(.+)$", stripped) |
| 503 | if match: |
| 504 | current_subsection = match.group(1).strip() |
| 505 | return current_subsection |
| 506 | |
| 507 | |
| 508 | def mixed_language_issues(text: str) -> list[dict[str, object]]: |
no outgoing calls
no test coverage detected