diff --git a/crates/eficore/src/env.rs b/crates/eficore/src/env.rs index ccfb7dc..f054f60 100644 --- a/crates/eficore/src/env.rs +++ b/crates/eficore/src/env.rs @@ -52,7 +52,7 @@ pub fn args() -> Result> { .next() // Filter out unprintable characters and backticks. // Both of which have been observed in the wild. - .map(|c| c < 0x1f as char || c == '`') + .map(|c| c.is_ascii_control() || c == '`') .unwrap_or(false) }) .collect();