Skip to content

Commit

Permalink
Fixed mail-to regex allowing email addresses to have dots & hyphen as…
Browse files Browse the repository at this point in the history
… part of the user segment

Fixes #5080
  • Loading branch information
lilHermit committed Oct 7, 2024
1 parent a2f2c07 commit f9b4f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ pub fn default_hyperlink_rules() -> Vec<hyperlink::Rule> {
// and include terminating ), / or - characters, if any
hyperlink::Rule::new(r"\b\w+://\S+[)/a-zA-Z0-9-]+", "$0").unwrap(),
// implicit mailto link
hyperlink::Rule::new(r"\b\w+@[\w-]+(\.[\w-]+)+\b", "mailto:$0").unwrap(),
hyperlink::Rule::new(r"\b[\w\.-]+@[\w-]+(\.[\w-]+)+\b", "mailto:$0").unwrap(),
]
}

Expand Down

0 comments on commit f9b4f37

Please sign in to comment.