(value: str)
| 268 | |
| 269 | |
| 270 | def _match_key(value: str) -> str: |
| 271 | text = normalize_whitespace(value).casefold() |
| 272 | text = re.sub(r"[_-]+", " ", text) |
| 273 | text = re.sub(r"[^\w\s\u3400-\u9fff]", " ", text, flags=re.UNICODE) |
| 274 | return normalize_whitespace(text) |
| 275 | |
| 276 | |
| 277 | def _contains_key(raw_text: str, key: str) -> bool: |
no test coverage detected