diff --git a/main.go b/main.go index 9e42e8a..e085bfb 100644 --- a/main.go +++ b/main.go @@ -431,5 +431,6 @@ func hasLicense(b []byte) bool { } return bytes.Contains(bytes.ToLower(b[:n]), []byte("copyright")) || bytes.Contains(bytes.ToLower(b[:n]), []byte("mozilla public")) || - bytes.Contains(bytes.ToLower(b[:n]), []byte("spdx-license-identifier")) + bytes.Contains(bytes.ToLower(b[:n]), []byte("spdx-license-identifier")) || + bytes.Contains(b[:n], []byte("©")) } diff --git a/main_test.go b/main_test.go index 5aa7648..f2c7fa6 100644 --- a/main_test.go +++ b/main_test.go @@ -486,6 +486,7 @@ func TestHasLicense(t *testing.T) { {"Subject to the terms of the Mozilla Public License", true}, {"SPDX-License-Identifier: MIT", true}, {"spdx-license-identifier: MIT", true}, + {"©", true}, } for _, tt := range tests {