Skip to content

Commit

Permalink
Inspect COPYING files
Browse files Browse the repository at this point in the history
This is commonly used for GNU licenses
  • Loading branch information
Nicholas Jones committed Apr 9, 2021
1 parent be97528 commit 72954fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/license/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func Resolve(modules []model.Module, threshold float64) ([]model.Module, error)
return modules, nil
}

var fileRgx = regexp.MustCompile(`(?i)^li[cs]en[cs]e`)
var fileRgx = regexp.MustCompile(`(?i)^(li[cs]en[cs]e|copying)`)

// locateLicenses searches for license files
func locateLicenses(path string) (lp []string, err error) {
Expand Down

0 comments on commit 72954fa

Please sign in to comment.