MCPcopy Index your code
hub / github.com/VitoHowe/glm-coding / _mask_string

Method _mask_string

app/runtime_logging.py:302–308  ·  view source on GitHub ↗
(self, value: Any)

Source from the content-addressed store, hash-verified

300 return value
301
302 def _mask_string(self, value: Any) -> str:
303 raw = str(value or "")
304 if not raw:
305 return ""
306 if len(raw) <= 12:
307 return raw[:2] + "***"
308 return raw[:6] + "***" + raw[-4:]
309
310
311@lru_cache(maxsize=1)

Callers 1

_sanitize_valueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected