Commit fa71fbb9 authored by Ben Boeckel's avatar Ben Boeckel

invalid_paths: simplify invalid character detection

parent 6f787f04
......@@ -52,7 +52,7 @@ impl InvalidPaths {
chars.chars()
.any(|ref c| {
!c.is_ascii() || self.disallowed_whitespace(*c) || c.is_control() ||
self.invalid_characters.chars().any(|ref ic| ic == c)
self.invalid_characters.contains(*c)
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment