MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _slugify

Method _slugify

network_storage.py:120–124  ·  view source on GitHub ↗
(self, ssid: Optional[str])

Source from the content-addressed store, hash-verified

118 vulnerabilities_dir)
119
120 def _slugify(self, ssid: Optional[str]) -> str:
121 source = ssid.strip().lower() if ssid else self.default_ssid
122 source = source.encode('ascii', errors='ignore').decode() or self.default_ssid
123 slug = re.sub(r'[^a-z0-9]+', '_', source).strip('_')
124 return slug or self.default_ssid
125
126 # ------------------------------------------------------------------
127 # Legacy migration

Callers 4

activate_networkMethod · 0.95
get_context_snapshotMethod · 0.95
_slug_for_ssidMethod · 0.80

Calls 2

decodeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected