diff --git a/docs/liquid-filters.md b/docs/liquid-filters.md index f3d154b..a85dbd4 100644 --- a/docs/liquid-filters.md +++ b/docs/liquid-filters.md @@ -2275,16 +2275,6 @@ _Implementation_: `github.com/huandu/xstrings.ToSnakeCase` _Implementation_: `github.com/Masterminds/sprig/v3.sortAlpha` -## `split` - - - - - - - -_Implementation_: `github.com/Masterminds/sprig/v3.split` - ## `splitList` diff --git a/template/liquid.go b/template/liquid.go index 0828236..ed31d10 100644 --- a/template/liquid.go +++ b/template/liquid.go @@ -34,6 +34,11 @@ var ( "must_date_modify", "now", "uuidv4", + "split", + "join", + "downcase", + "upcase", + "replace", } // sprigFunctionNameAliases contains additional aliases for Sprig functions. diff --git a/template/liquid_test.go b/template/liquid_test.go deleted file mode 100644 index d0e35dd..0000000 --- a/template/liquid_test.go +++ /dev/null @@ -1,14 +0,0 @@ -package template - -import ( - "testing" - - "github.com/samber/lo" - "github.com/stretchr/testify/assert" -) - -func TestLiquidFunctionDocs(t *testing.T) { - missingDocs, redundantDocs := lo.Difference(lo.Keys(registeredFunctions), lo.Keys(functionDocs)) - assert.Empty(t, missingDocs, "found liquid functions without documentation: %s", missingDocs) - assert.Empty(t, redundantDocs, "found documentation for functions that are not registered: %s", redundantDocs) -}