MatchFileName will check the given file name with the stored regex
(filename string)
| 156 | |
| 157 | // MatchFileName will check the given file name with the stored regex |
| 158 | func (header *Header) MatchFileName(filename string) bool { |
| 159 | if header.FileNameRegex != nil { |
| 160 | return header.FileNameRegex.MatchString(filename) |
| 161 | } |
| 162 | |
| 163 | return false |
| 164 | } |
| 165 | |
| 166 | func (header *Header) MatchFileHeader(firstLine []byte) bool { |
| 167 | if header.HeaderRegex != nil { |