hugo/docs/content/en/functions/strings.ContainsAny.md
2023-05-22 16:47:07 +02:00

449 B

title description categories menu keywords signature relatedfuncs
strings.ContainsAny Reports whether a string contains any character from a given string.
functions
docs
parent
functions
string strings substring contains any
strings.ContainsAny STRING CHARACTERS
strings.Contains
{{ strings.ContainsAny "Hugo" "gm" }} → true

The check is case sensitive:

{{ strings.ContainsAny "Hugo" "Gm" }} → false