Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
387
def
_truncate(value: str, limit: int) -> str:
388
if
len(value) <= limit:
389
return
value
390
return
value[: limit - 3] +
"..."
Callers
3
classify_error
Function · 0.85
_sanitize_diagnostics
Function · 0.85
_summarize_raw
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected