is_dirty

Function is_dirty 

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

Checks whether the given string is “dirty” (i.e. contains banned characters).

§Example

use ntfsanitise::is_dirty;

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