mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 13:32:08 -05:00
869 B
869 B
title | description | categories | keywords | action | aliases | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
strings.ContainsNonSpace | Reports whether the given string contains any non-space characters as defined by Unicode. |
|
|
{{< new-in 0.111.0 >}}
Whitespace characters include \t
, \n
, \v
, \f
, \r
, and characters in the Unicode Space Separator category.
{{ strings.ContainsNonSpace "\n" }} → false
{{ strings.ContainsNonSpace " " }} → false
{{ strings.ContainsNonSpace "\n abc" }} → true