aboutsummaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'file.go')
-rw-r--r--file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.go b/file.go
index 80c369c..6568137 100644
--- a/file.go
+++ b/file.go
@@ -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