MCPcopy
hub / github.com/github/awesome-copilot / _slug

Function _slug

skills/mini-context-graph/scripts/tools/wiki_store.py:54–58  ·  view source on GitHub ↗

Convert a title to a filesystem-safe slug.

(title: str)

Source from the content-addressed store, hash-verified

52
53
54def _slug(title: str) -> str:
55 """Convert a title to a filesystem-safe slug."""
56 slug = title.lower().strip()
57 slug = re.sub(r"[^a-z0-9]+", "-", slug)
58 return slug.strip("-")
59
60
61def _page_path(category: str, slug: str) -> Path:

Callers 3

write_pageFunction · 0.85
read_pageFunction · 0.85
lint_wikiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected