MCPcopy Create free account
hub / github.com/agent-tower/core / isImageFile

Function isImageFile

packages/web/src/components/workspace/EditorView.tsx:15–18  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

13 'png', 'jpg', 'jpeg', 'gif', 'bmp', 'webp', 'svg', 'ico', 'avif',
14])
15
16function isImageFile(filePath: string) {
17 const ext = filePath.split('.').pop()?.toLowerCase()
18 return ext ? IMAGE_EXTENSIONS.has(ext) : false
19}
20
21type OpenTab = {

Callers 1

EditorViewFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected