MCPcopy Create free account
hub / github.com/CoderLuii/HolyClaude / sanitize

Function sanitize

scripts/notify.py:18–25  ·  view source on GitHub ↗
(value, limit=120)

Source from the content-addressed store, hash-verified

16
17
18def sanitize(value, limit=120):
19 if value is None:
20 return ""
21 text = str(value).replace("\x00", "")
22 text = re.sub(r"\s+", " ", text).strip()
23 if len(text) > limit:
24 return text[: limit - 3].rstrip() + "..."
25 return text
26
27
28def parse_args(argv):

Callers 4

provider_labelFunction · 0.85
session_fragmentFunction · 0.85
provider_eventFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected