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

Doesn't work with non-ascii emails #3

Closed
gtd opened this issue Sep 4, 2013 · 1 comment
Closed

Doesn't work with non-ascii emails #3

gtd opened this issue Sep 4, 2013 · 1 comment

Comments

@gtd
Copy link

gtd commented Sep 4, 2013

I realize that RFC2822 does not support extended charsets and that that is pending RFC5335. However the current situation leads to a huge gotcha where the documentation suggests matching against RFC822::EMAIL_REGEXP_WHOLE. However if this is done against a UTF-8 string with higher order chars then it pukes out a Encoding::CompatibilityError. eg.

"tó[email protected]" =~ RFC822::EMAIL_REGEXP_WHOLE

I realize you guard against this in the String methods, but the docs themselves list the direct match method.

@mspanc
Copy link
Owner

mspanc commented May 14, 2015

Thank you for your report. I will update the documentation and warn about this case.

@mspanc mspanc closed this as completed May 14, 2015
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

No branches or pull requests

2 participants