aboutsummaryrefslogtreecommitdiffhomepage
path: root/source/sourceSpec.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-10-16 16:24:49 +0200
committerBjørn Erik Pedersen <[email protected]>2021-10-20 05:00:17 +0200
commit471ed91c60cd36645794925cb4892cc820eae626 (patch)
treeb78ae6d931e7dd39ccd35a1ed3ff8440f9ef7900 /source/sourceSpec.go
parent94a5bac5b29bbba1ca4809752fe3fd04a58547b6 (diff)
downloadhugo-471ed91c60cd36645794925cb4892cc820eae626.tar.gz
hugo-471ed91c60cd36645794925cb4892cc820eae626.zip
hugofs: Add includeFiles and excludeFiles to mount configuration
Fixes #9042
Diffstat (limited to 'source/sourceSpec.go')
-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 {