Normalize a Chinese title for comparison (remove spaces, punct variants).
(title: str)
| 525 | |
| 526 | |
| 527 | def _normalize_title(title: str) -> str: |
| 528 | """Normalize a Chinese title for comparison (remove spaces, punct variants).""" |
| 529 | t = re.sub(r'\s+', '', title) |
| 530 | t = t.replace('/', '').replace('(', '(').replace(')', ')') |
| 531 | t = re.sub(r'\(\d{4}年.*?\)', '', t) |
| 532 | return t |
| 533 | |
| 534 | |
| 535 | def _extract_core_subject(title: str) -> str: |
no outgoing calls
no test coverage detected