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

Function matchHeadSignatures

packages/parser/src/sniffer.ts:34–36  ·  view source on GitHub ↗

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

(headContent: string, patterns: RegExp[])

Source from the content-addressed store, hash-verified

32 * 检查文件头是否匹配签名
33 */
34function matchHeadSignatures(headContent: string, patterns: RegExp[]): boolean {
35 return patterns.some((pattern) => pattern.test(headContent))
36}
37
38/**
39 * 检查文件名是否匹配签名

Callers 1

matchFeatureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected