diff --git a/src/main.rs b/src/main.rs index c0e9024..3f2f6f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,8 @@ impl Replacer for MailScrambler { } fn main() { - let re = Regex::new(r#"["]([^"\f]*@[^"\s]*)["]"#).unwrap(); + let re = + Regex::new(r#""([[[:ascii:]]&&[^"\f\[\]\\]]*?@[[[:nfpvv:]]&&[^"\s]\[\]\\]*)""#).unwrap(); let mut line = String::new();