]> git.maquefel.me Git - brevno-suite/hugo/commit
tpl: Add hasSuffix alias
authorJonathan Fisher <jonathan@trueanthem.com>
Wed, 1 Mar 2023 22:29:33 +0000 (14:29 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 8 Mar 2023 09:18:34 +0000 (10:18 +0100)
commitd171d1543d6df3f93a368c240a247513e5b7da44
tree6cc1500d9691e1a44c15d89be72868943eb039c2
parent02ab77da3e6af762b1eececc852fd851fc79b30b
tpl: Add hasSuffix alias

strings.HasPrefix already has an alias of hasPrefix
but strings.HasSuffix has no such alias.
This PR adds a hasSuffix alias to the tpl function with corresponding
function documentation.
It also adds a Minor update to the hasPrefix function documentation
re: keywords and relatedfuncs.

 Completes https://github.com/gohugoio/hugo/issues/10474
docs/content/en/functions/hasPrefix.md
docs/content/en/functions/hasSuffix.md [new file with mode: 0644]
tpl/strings/init.go