MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / matchFilenameSignatures

Function matchFilenameSignatures

packages/parser/src/sniffer.ts:41–44  ·  view source on GitHub ↗

* 检查文件名是否匹配签名

(filePath: string, patterns: RegExp[])

Source from the content-addressed store, hash-verified

39 * 检查文件名是否匹配签名
40 */
41function matchFilenameSignatures(filePath: string, patterns: RegExp[]): boolean {
42 const filename = path.basename(filePath)
43 return patterns.some((pattern) => pattern.test(filename))
44}
45
46/**
47 * 检查必需字段是否存在

Callers 1

matchFeatureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected