diff --git a/pkg/funcmap/funcmap.go b/pkg/funcmap/funcmap.go index 9556619..1d46086 100644 --- a/pkg/funcmap/funcmap.go +++ b/pkg/funcmap/funcmap.go @@ -10,14 +10,16 @@ import ( ) var FuncMap = func() template.FuncMap { - fm := sprig.HermeticTxtFuncMap() - for name, fn := range funcMap { + fm := sprig.TxtFuncMap() + + for name, fn := range extraFuncMap { fm[name] = fn } + return fm }() -var funcMap = map[string]interface{}{ +var extraFuncMap = map[string]interface{}{ "glob": globAny, "re": regexpAny, }