Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ChatLab/ChatLab
/ getExtension
Function
getExtension
packages/parser/src/sniffer.ts:27–29 ·
view source on GitHub ↗
* 获取文件扩展名(小写)
(filePath: string)
Source
from the content-addressed store, hash-verified
25
* 获取文件扩展名(小写)
26
*/
27
function
getExtension(filePath: string): string {
28
return
path.extname(filePath).toLowerCase()
29
}
30
31
/**
32
* 检查文件头是否匹配签名
Callers
4
sniff
Method · 0.85
getParser
Method · 0.85
sniffAll
Method · 0.85
getParserCandidates
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected