MCPcopy
hub / github.com/HisMax/RedInk / _truncate

Function _truncate

backend/errors.py:387–390  ·  view source on GitHub ↗
(value: str, limit: int)

Source from the content-addressed store, hash-verified

385
386
387def _truncate(value: str, limit: int) -> str:
388 if len(value) <= limit:
389 return value
390 return value[: limit - 3] + "..."

Callers 3

classify_errorFunction · 0.85
_sanitize_diagnosticsFunction · 0.85
_summarize_rawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected