assert-rs / predicates-rs

Boolean-valued predicate functions in Rust
docs.rs/predicates
Apache License 2.0
173 stars 29 forks source link

Predicate modifier to strip colors and friends? #76

Open epage opened 5 years ago

epage commented 5 years ago

Like the modifier to normalize newlines, it could help assert_cmd users to offer a way to strip things like ansi color codes.

While assert_cmd more focus on CLI that only use stdout/stderr (including sanitize the output a.k.a removing terminal code for color, blinking text, empty line, and others)

From @DrSensor at https://github.com/assert-rs/assert_cmd/issues/74