MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isImageOutput

Function isImageOutput

src/tools/BashTool/utils.ts:49–51  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

47 * Check if content is a base64 encoded image data URL
48 */
49export function isImageOutput(content: string): boolean {
50 return /^data:image\/[a-z0-9.+_-]+;base64,/i.test(content)
51}
52
53const DATA_URI_RE = /^data:([^;]+);base64,(.+)$/
54

Callers 3

callFunction · 0.85
formatOutputFunction · 0.85
callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected