MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / trunc

Function trunc

app/src/modules/utils.js:7–7  ·  view source on GitHub ↗
(s, n)

Source from the content-addressed store, hash-verified

5
6export function esc(s) { const d = document.createElement('div'); d.textContent = s; return d.innerHTML; }
7export function trunc(s, n) { return (!s || s.length <= n) ? s : s.substring(0, n) + '...'; }
8export function stripImageTags(s) { return (s || '').replace(/\[Image:\s*source:\s*[^\]]*\]/g, '').trim(); }
9
10export function formatUrlForDisplay(url, includeScheme) {

Callers 5

confirmSwitchSessionFunction · 0.90
toolInputFullFunction · 0.90
renderThinkingFunction · 0.90
renderToolFunction · 0.90
attachResultFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected