MCPcopy Index your code
hub / github.com/micro-editor/micro / MatchFileHeader

Method MatchFileHeader

pkg/highlight/parser.go:166–172  ·  view source on GitHub ↗
(firstLine []byte)

Source from the content-addressed store, hash-verified

164}
165
166func (header *Header) MatchFileHeader(firstLine []byte) bool {
167 if header.HeaderRegex != nil {
168 return header.HeaderRegex.Match(firstLine)
169 }
170
171 return false
172}
173
174// HasFileSignature checks the presence of a stored signature
175func (header *Header) HasFileSignature() bool {

Callers 1

UpdateRulesMethod · 0.95

Calls 1

MatchMethod · 0.45

Tested by

no test coverage detected