MCPcopy
hub / github.com/Gracker/awesome-android-ai-dev-sources / slug

Function slug

process_candidates.py:98–101  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

96
97
98def slug(value: str) -> str:
99 value = norm_text(value)
100 value = re.sub(r"[^a-z0-9\u4e00-\u9fff]+", "-", value).strip("-")
101 return value or "source"
102
103
104def normalize_url(value: Any) -> str:

Callers 1

entry_from_candidateFunction · 0.85

Calls 1

norm_textFunction · 0.85

Tested by

no test coverage detected