fix nix run command

This commit is contained in:
Clément DOUIN 2022-03-04 16:04:22 +01:00
parent a14ce2af60
commit 4bbc348dc6
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -42,8 +42,10 @@ impl Cell {
// and [variation selectors].
//
// [variation selectors]: https://en.wikipedia.org/wiki/Variation_Selectors_(Unicode_block)
value: String::from(value.as_ref())
.replace(&['\r', '\n', '\t', '\u{fe0e}', '\u{fe0f}'], ""),
value: String::from(value.as_ref()).replace(
|c| ['\r', '\n', '\t', '\u{fe0e}', '\u{fe0f}'].contains(&c),
"",
),
..Self::default()
}
}