From 0ec5a5381d0b0660bfee81b7867af4e0f8124fa2 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 6 Nov 2015 12:26:27 +0900 Subject: [PATCH] Fixing globbing --- util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }