MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _normalize_lookup_key

Function _normalize_lookup_key

config/direction_lexicon.py:41–45  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

39
40
41def _normalize_lookup_key(value: Any) -> str:
42 normalized = str(value or "").strip().casefold()
43 if not normalized:
44 return ""
45 return re.sub(r"[^0-9a-z\u4e00-\u9fff]+", "", normalized)
46
47
48def normalize_direction_key(value: Any) -> str:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected