(text: str)
| 101 | |
| 102 | |
| 103 | def normalize_title(text: str) -> str: |
| 104 | return re.sub(r"[^a-z0-9\s]", "", normalize_whitespace(text).lower()).strip() |
| 105 | |
| 106 | |
| 107 | LOCAL_PDF_PREFIX_PATTERN = re.compile(r"^(?:[^-]{1,120})\s+-\s+(?:19|20)\d{2}\s+-\s+") |
no test coverage detected