MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isImageFilePath

Function isImageFilePath

source code/utils/imagePaste.ts:326–330  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

324 * @returns Boolean indicating if text is an image path
325 */
326export function isImageFilePath(text: string): boolean {
327 const cleaned = removeOuterQuotes(text.trim())
328 const unescaped = stripBackslashEscapes(cleaned)
329 return IMAGE_EXTENSION_REGEX.test(unescaped)
330}
331
332/**
333 * Clean and normalize a text string that might be an image file path

Callers 2

usePasteHandlerFunction · 0.85
wrappedOnInputFunction · 0.85

Calls 2

removeOuterQuotesFunction · 0.85
stripBackslashEscapesFunction · 0.85

Tested by

no test coverage detected