Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle @ in display name when using MailHelper.StringToEmailAddr…
…ess (#903) * Update MailHelper.cs fix email regex to allow email addresses in the display name. Input: [email protected] <[email protected]> Expected: -NameGroup: [email protected] -EmailGroup: [email protected] Initial: -NameGroup: {empty string} -EmailGroup: [email protected] <[email protected] Result: A match is found, therefore there is no error caught and email string is bad After: -NameGroup: [email protected] -EmailGroup: [email protected] Result: Success! Other test cases: -<[email protected]> SUCCESS [email protected] SUCCESS -username <[email protected]> SUCCESS -username <usernameexample.com> NO MATCH (SUCCESS)
- Loading branch information