New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix serialization of NameEmail if name includes an email address #8860
Fix serialization of NameEmail if name includes an email address #8860
Conversation
CodSpeed Performance ReportMerging #8860 will not alter performanceComparing Summary
|
Please review |
Thanks for the PR. I will confirm with the team tomorrow if this is the approach we want to take for the fix, and I'll get back to you early tomorrow :). |
Let's go with a more simple approach of simply checking for an @ symbol in the name :). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in my above comment, let's go with a simple check for @
instead of the regex matching. Thanks!
@sydney-runkle sure, once I'll get home I'll change it |
@sydney-runkle Changed it as per your comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!!
Change Summary
Fixing a serialization issue where an email would include an email address in the name i.e.
"name@gmail.com" <name@gmail.com>
andNameEmail
would validate it correctly but remove the quotes when serializing back into a stringRelated issue number
Fixing #8811
Checklist
Selected Reviewer: @adriangb