Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
21
function getFileExtension(filename: string): string {
22
return filename.split(
"."
).pop()?.toLowerCase() ||
""
;
23
}
24
25
function getLanguage(ext: string): string {
26
const languageMap: Record<string, string> = {
Callers
1
FilePreview
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected