From 7c57042f19fed6fde46dcce756b19ea6a963d126 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 21 Mar 2024 12:50:59 +0100 Subject: [PATCH] test smudge Signed-off-by: Harald Hoyer --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();