MCPcopy Create free account
hub / github.com/caverav/flutterdec / _sanitize_owner_class

Function _sanitize_owner_class

adapters/python/adapter_template.py:329–337  ·  view source on GitHub ↗
(raw: str)

Source from the content-addressed store, hash-verified

327 if ":" in t:
328 t = t.split(":", 1)[1]
329 t = t.strip()
330 if not t:
331 return None
332 cleaned = "".join(ch for ch in t if ch.isalnum() or ch in "._$")
333 if not cleaned:
334 return None
335 if len(cleaned) > 96:
336 return None
337 if not (cleaned[0].isalpha() or cleaned[0] in "_$"):
338 return None
339 return cleaned
340

Callers 3

ensure_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected