mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
933 B
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. |
|
|
{{< 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.