Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
baerwang committed Jan 4, 2024
1 parent 20986a3 commit f6b2670
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/handler/scan_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ mod tests {
#[test]
fn domain_regexp_test() {
let regex = domain_regexp("example.com".to_string());
assert_eq!(regex.is_match("demon.example.com"), true);
assert_eq!(regex.is_match("demon.example1.com"), false);
assert!(regex.is_match("demon.example.com"));
assert!(!regex.is_match("demon.example1.com"));
let regex = domain_regexp("demon.example.com".to_string());
assert_eq!(regex.is_match("example.com"), false);
assert_eq!(regex.is_match("demon1.example.com"), true);
assert!(!regex.is_match("example.com"));
assert!(regex.is_match("demon1.example.com"));
}
}

0 comments on commit f6b2670

Please sign in to comment.