(left: str, right: str)
| 110 | |
| 111 | |
| 112 | def chapter_eq(left: str, right: str) -> bool: |
| 113 | def _norm(v: str) -> str: |
| 114 | return re.sub(r"\s+", " ", v.strip().upper()) |
| 115 | |
| 116 | return _norm(left) == _norm(right) |
| 117 | |
| 118 | |
| 119 | def filter_hits_to_chapter(hits: list[dict[str, Any]], chapter: str) -> list[dict[str, Any]]: |
no test coverage detected