Fixing globbing

This commit is contained in:
Alex Yatskov 2015-11-06 12:26:27 +09:00
parent 0569c4eef6
commit 0ec5a5381d

View File

@ -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
}