1
0
Fork 0
hugo/docs/content/en/functions/strings/ContainsNonSpace.md

933 B

title description categories keywords action aliases
strings.ContainsNonSpace Reports whether the given string contains any non-space characters as defined by Unicode's White Space property.
aliases related returnType signatures
functions/strings/Contains
functions/strings/ContainsAny
functions/strings/HasPrefix
functions/strings/HasSuffix
functions/collections/In
bool
strings.ContainsNonSpace STRING
/functions/strings.containsnonspace

{{< new-in 0.111.0 >}}

{{ strings.ContainsNonSpace "\n" }} → false
{{ strings.ContainsNonSpace " " }} → false
{{ strings.ContainsNonSpace "\n abc" }} → true

Common whitespace characters include:

'\t', '\n', '\v', '\f', '\r', ' '

See the Unicode Character Database for a complete list.