is_clean

Function is_clean 

Source
pub fn is_clean(input: impl AsRef<str>) -> bool
Expand description

Checks whether the given string is “clean” (i.e. does not contain any banned characters).

§Example

use ntfsanitise::is_clean;

assert!(is_clean("Nice and clean!"));
assert!(!is_clean("Me? Dirty?"));