Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve Email::Valid validation #2
Hi Maros! Thanks for maintaining this great module.
While looking at the code, I found a use of Email::Valid where its return value was treated as a boolean. This is unfortunately a very common false assumption.
For example, if you call
I've tried to handle this case, and added a test case to make sure it fails properly.
Let me know if there's anything you want me to update.