MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / getFileExtension

Function getFileExtension

src/components/FilePreview.tsx:21–23  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

19}
20
21function getFileExtension(filename: string): string {
22 return filename.split(".").pop()?.toLowerCase() || "";
23}
24
25function getLanguage(ext: string): string {
26 const languageMap: Record<string, string> = {

Callers 1

FilePreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected