Fixing globbing
This commit is contained in:
parent
0569c4eef6
commit
0ec5a5381d
3
util.go
3
util.go
@ -33,8 +33,9 @@ func globMatch(globs []string, name string) (bool, error) {
|
|||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
|
|
||||||
|
base := filepath.Base(name)
|
||||||
for _, glob := range globs {
|
for _, glob := range globs {
|
||||||
match, err = filepath.Match(glob, name)
|
match, err = filepath.Match(glob, base)
|
||||||
if err != nil || match {
|
if err != nil || match {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user