Function ci_manager::util::remove_ansi_codes
source · pub fn remove_ansi_codes(text: &str) -> Cow<'_, str>Expand description
Remove ANSI codes from a string
§Example
let test_str = r#"[1;31mERROR:[0m Logfile of failure stored in"#;
let modified = remove_ansi_codes(test_str);
assert_eq!(modified, "ERROR: Logfile of failure stored in");