in image/resources/filter-exports/filter.go [84:101]
func match(export string, patterns []string, empty bool) bool {
if len(patterns) == 0 {
return empty
}
for _, p := range patterns {
m, err := doublestar.Match(p, export)
if err != nil {
// this should not happen as the patterns were checked when loading
panic(err)
}
if m {
return true
}
}
return false
}