test smudge

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-21 12:50:59 +01:00
parent 641946884c
commit 7c57042f19

View file

@ -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();