diff --git a/src-tauri/src/commands/analysis.rs b/src-tauri/src/commands/analysis.rs index ea8bccb6..5005c2cb 100644 --- a/src-tauri/src/commands/analysis.rs +++ b/src-tauri/src/commands/analysis.rs @@ -250,10 +250,8 @@ mod tests { #[test] fn test_validate_log_file_path_accepts_small_file() { - let file_path = std::env::temp_dir().join(format!( - "tftsr-analysis-test-{}.log", - uuid::Uuid::now_v7() - )); + let file_path = + std::env::temp_dir().join(format!("tftsr-analysis-test-{}.log", uuid::Uuid::now_v7())); std::fs::write(&file_path, "hello").unwrap(); let result = validate_log_file_path(file_path.to_string_lossy().as_ref()); assert!(result.is_ok()); diff --git a/src-tauri/src/pii/patterns.rs b/src-tauri/src/pii/patterns.rs index eb21cabc..ab28f0c3 100644 --- a/src-tauri/src/pii/patterns.rs +++ b/src-tauri/src/pii/patterns.rs @@ -75,8 +75,10 @@ pub fn get_patterns() -> Vec<(PiiType, Regex)> { // Hostname / FQDN ( PiiType::Hostname, - Regex::new(r"\b(?=.{1,253}\b)(?:[A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])?\.)+[A-Za-z]{2,63}\b") - .unwrap(), + Regex::new( + r"\b(?:[A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])?\.)+[A-Za-z]{2,63}\b", + ) + .unwrap(), ), ] }