output: Strip ANSI color codes before processing
Beware, I haven't written any Rust before. I may be doing things wrong. Feel free to amend.
regex
looks like a sizable dependency, but this project already has like 50 MB of dependencies, so I hope you won't mind. I considered implementing the replacements by hand, but a regular expression replacement seems nicer.
I don't understand the changes in Cargo.lock, all I did was cargo add regex
.
Bug: T386773