hugo/docs/content/en/functions/strings/ContainsNonSpace.md
Bjørn Erik Pedersen 5fd1e74903
Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'
```
git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash
```

Closes #11925
2024-01-27 10:48:57 +01:00

936 B
Raw Blame History

title description categories keywords action aliases
strings.ContainsNonSpace Reports whether the given string contains any non-space characters as defined by Unicodes 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 white space characters include:

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

See the Unicode Character Database for a complete list.