Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-10-16 17:24:49 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-10-20 06:00:17 +0300
commit471ed91c60cd36645794925cb4892cc820eae626 (patch)
treeb78ae6d931e7dd39ccd35a1ed3ff8440f9ef7900 /source
parent94a5bac5b29bbba1ca4809752fe3fd04a58547b6 (diff)
hugofs: Add includeFiles and excludeFiles to mount configuration
Fixes #9042
Diffstat (limited to 'source')
-rw-r--r--source/sourceSpec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/sourceSpec.go b/source/sourceSpec.go
index 3640c83d5..46a55bf64 100644
--- a/source/sourceSpec.go
+++ b/source/sourceSpec.go
@@ -74,7 +74,7 @@ func NewSourceSpec(ps *helpers.PathSpec, inclusionFilter *glob.FilenameFilter, f
}
}
shouldInclude := func(filename string) bool {
- if !inclusionFilter.Match(filename) {
+ if !inclusionFilter.Match(filename, false) {
return false
}
for _, r := range regexps {