mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
936 B
936 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 white space characters include:
'\t', '\n', '\v', '\f', '\r', ' '
See the Unicode Character Database for a complete list.