Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-21 13:13:27 +01:00
parent 7c57042f19
commit 847f9c3705

View file

@ -30,7 +30,8 @@ impl Replacer for MailScrambler {
} }
fn main() { 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(); let mut line = String::new();