diff --git a/src/main.rs b/src/main.rs index ba4362c..c0e9024 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,8 @@ use regex::{Captures, Regex, Replacer}; use std::io::stdin; /* -"test123@example.org" +"grfg123@rknzcyr.bet" +"grfg456@rknzcyr.bet" */ struct MailScrambler; @@ -29,7 +30,7 @@ impl Replacer for MailScrambler { } fn main() { - let re = Regex::new(r#"["]([^"\s]*@[^"\s]*)["]"#).unwrap(); + let re = Regex::new(r#"["]([^"\f]*@[^"\s]*)["]"#).unwrap(); let mut line = String::new();