diff options
Diffstat (limited to 'file.go')
| -rw-r--r-- | file.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -152,7 +152,7 @@ func (f *file) detectComment(cfg *config) { } var basename = strings.ToLower(filepath.Base(f.path)) for _, mfc := range cfg.MatchFileComment { - if mfc.rePattern.MatchString(basename) { + if mfc.isMatch(basename) { if mfc.isDirectLicense() { f.group = groupBinary return |
