(stem: str)
| 52 | |
| 53 | |
| 54 | def _sanitize_stem(stem: str) -> str: |
| 55 | normalized = unicodedata.normalize("NFKC", stem) |
| 56 | return _SAFE_STEM_RE.sub("-", normalized).strip("-") or "document" |
| 57 | |
| 58 | |
| 59 | def _name_taken(candidate: str, registry: HashRegistry) -> bool: |
no outgoing calls
no test coverage detected