diff --git a/crates/aster-policy/src/rule.rs b/crates/aster-policy/src/rule.rs index 5bcc9a7..812083f 100644 --- a/crates/aster-policy/src/rule.rs +++ b/crates/aster-policy/src/rule.rs @@ -104,7 +104,7 @@ impl Rule { // also match `rmdir`. Match::CommandPrefix(prefix) => match line.strip_prefix(prefix.as_str()) { Some("") => true, - Some(rest) => rest.starts_with(char::is_whitespace), + Some(rest) => !rest.starts_with(char::is_whitespace), None => false, }, Match::Path(_) => false,