Skip to content
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

Handle trailing spaces after email address when converting to Punycode #782

Merged
merged 3 commits into from
Mar 29, 2021

Conversation

eshryane
Copy link
Member

@eshryane eshryane commented Mar 12, 2021

Separate email address and leading/trailing space matching into separate patterns.

There was a bug where trailing space was included in the Punycode conversion, this was breaking if there were a lot of spaces. This is now fixed.

@eshryane
Copy link
Member Author

Integration tests have passed

@eshryane
Copy link
Member Author

I don't trim spaces before and after the email address, because I don't want to change formatting. Also it's important to preserve spaces if there's a comment.

@eshryane eshryane merged commit 6fa39cb into master Mar 29, 2021
@eshryane eshryane deleted the punycode_trailing_spaces branch March 29, 2021 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants