blob: f51ba3cb56e5f80aadb4453434e0d519360e80f6 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package checklicenses
import "strings"
func isSingleLicenseFile(name string, singleLicenseFiles []string) bool {
for _, singleLicenseFile := range singleLicenseFiles {
// example of file: LICENSE, LICENSE-THIRD-PARTY, ...
if strings.Index(name, singleLicenseFile) == 0 {
return true
}
}
return false
}