From 37f15cee5c56906d88d882595601d8a76a4046c6 Mon Sep 17 00:00:00 2001 From: Amir Ben Nun Date: Wed, 8 Mar 2023 15:16:03 +0530 Subject: [PATCH] Add license.mit filename to detector --- detector/detector.go | 1 + 1 file changed, 1 insertion(+) diff --git a/detector/detector.go b/detector/detector.go index f1c2d46..1a21e29 100644 --- a/detector/detector.go +++ b/detector/detector.go @@ -270,6 +270,7 @@ func buildLicenceRegex() *regexp.Regexp { // inspired by https://github.com/src-d/go-license-detector/blob/7961dd6009019bc12778175ef7f074ede24bd128/licensedb/internal/investigation.go#L29 licenceFileNames := []string{ `li[cs]en[cs]es?`, + `license.(mit|apache)`, `legal`, `copy(left|right|ing)`, `unlicense`,