diff options
Diffstat (limited to 'plugin/auto/walk.go')
-rw-r--r-- | plugin/auto/walk.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/auto/walk.go b/plugin/auto/walk.go index 92676654e..25b559cb9 100644 --- a/plugin/auto/walk.go +++ b/plugin/auto/walk.go @@ -2,7 +2,6 @@ package auto import ( "os" - "path" "path/filepath" "regexp" @@ -91,7 +90,7 @@ func (a Auto) Walk() error { // matches matches re to filename, if is is a match, the subexpression will be used to expand // template to an origin. When match is true that origin is returned. Origin is fully qualified. func matches(re *regexp.Regexp, filename, template string) (match bool, origin string) { - base := path.Base(filename) + base := filepath.Base(filename) matches := re.FindStringSubmatchIndex(base) if matches == nil { |