strip_ansi_codes

Function strip_ansi_codes 

Source
pub fn strip_ansi_codes(s: &str) -> String
Expand description

Strips ANSI color codes from a string using a regex This is useful for comparing strings with ANSI color codes to strings without