Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfl0wer committed Jul 9, 2024
1 parent 48ca228 commit a2ca167
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/email/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use regex::Regex;
use crate::errors::{Error, UserError};

lazy_static::lazy_static! {
// TODO(bitfl0wer): Could we just use <https://docs.rs/email_address/latest/email_address/> here?
static ref EMAIL_REGEX: Regex = Regex::new(r#"^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$"#).unwrap();
}

Expand Down

0 comments on commit a2ca167

Please sign in to comment.