MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _sanitize_stem

Function _sanitize_stem

openkb/converter.py:54–56  ·  view source on GitHub ↗
(stem: str)

Source from the content-addressed store, hash-verified

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

Callers 2

_staging_dir_forFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected