IP addresses trigger R_SUSPICIOUS_URL false positive (closes #461 #419)

This commit is contained in:
mdecimus
2024-05-22 16:52:26 +02:00
parent 0fc5d40ec1
commit 0d2e58361b
13 changed files with 102 additions and 45 deletions

View File

@@ -296,6 +296,7 @@ where
| TokenType::Url(_)
| TokenType::UrlNoScheme(_)
| TokenType::UrlNoHost(_)
| TokenType::IpAddr(_)
| TokenType::Email(_) => {
if token_start != usize::MAX {
add_line(&mut clean_line, &line[token_start..token_end]);