R/has_ansi.R
has_style.Rd
Check if a string has some ANSI styling
has_style(string)
The string to check. It can also be a character vector.
Logical vector, TRUE for the strings that have some ANSI styling.
TRUE
## The second one has style if crayon is enabled has_style("foobar") #> [1] FALSE has_style(red("foobar")) #> [1] TRUE