MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / sanitizePreview

Function sanitizePreview

cli/src/components/blocks/tool-branch.tsx:34–35  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

32 const isStreaming = useChatStore((state) => state.streamingAgents.has(toolBlock.toolCallId))
33
34 const sanitizePreview = (value: string): string =>
35 value.replace(/[#*_`~\[\]()]/g, '').trim()
36
37 if (toolBlock.toolName === 'end_turn') {
38 return null

Callers 1

tool-branch.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected