From 4bbc348dc61ee5b7e1d64ede231e53c7964b4368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Fri, 4 Mar 2022 16:04:22 +0100 Subject: [PATCH] fix nix run command --- src/ui/table.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/table.rs b/src/ui/table.rs index 7ecb174d..137c80e8 100644 --- a/src/ui/table.rs +++ b/src/ui/table.rs @@ -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() } }