MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / _slug_part

Function _slug_part

scripts/docs/generate_rust_library_reference.py:128–132  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

126
127
128def _slug_part(value: str) -> str:
129 value = value.replace("!", "-bang")
130 value = re.sub(r"[^A-Za-z0-9_-]+", "-", value)
131 value = value.replace("_", "-").strip("-").lower()
132 return value or "item"
133
134
135def _rustdoc_path_part(value: str) -> str:

Callers 2

_output_relativeFunction · 0.70
_url_relativeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected