diff --git a/util.go b/util.go index 3b4a7f7..718482c 100644 --- a/util.go +++ b/util.go @@ -33,8 +33,9 @@ func globMatch(globs []string, name string) (bool, error) { err error ) + base := filepath.Base(name) for _, glob := range globs { - match, err = filepath.Match(glob, name) + match, err = filepath.Match(glob, base) if err != nil || match { break }