aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugofs/glob.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugofs/glob.go')
-rw-r--r--hugofs/glob.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugofs/glob.go b/hugofs/glob.go
index 147b6b9f1..e691cdc10 100644
--- a/hugofs/glob.go
+++ b/hugofs/glob.go
@@ -26,14 +26,14 @@ import (
// Glob walks the fs and passes all matches to the handle func.
// The handle func can return true to signal a stop.
func Glob(fs afero.Fs, pattern string, handle func(fi FileMetaInfo) (bool, error)) error {
- pattern = glob.NormalizePath(pattern)
+ pattern = glob.NormalizePathCaseSensitive(pattern)
if pattern == "" {
return nil
}
- g, err := glob.GetGlob(pattern)
+ g, err := glob.GetFilenamesGlob(pattern)
if err != nil {
- return nil
+ return err
}
hasSuperAsterisk := strings.Contains(pattern, "**")