-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
fixed issue #2432 #2437
fixed issue #2432 #2437
Conversation
could you also add tests for this specific scenario |
In which file should I add them? I wasn't sure of that |
added few tests for this issue in validators.test.js |
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.
the tests seems to be failing do fix
yep, am on it rn |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2437 +/- ##
===========================================
- Coverage 100.00% 99.96% -0.04%
===========================================
Files 110 111 +1
Lines 2510 2517 +7
Branches 633 634 +1
===========================================
+ Hits 2510 2516 +6
- Partials 0 1 +1 ☔ View full report in Codecov by Sentry. |
Done, i put the test in the wrong area, please check now |
Thanks for your contrib! 🎉 |
an email of the type "example*@gmail.com was accepted due to an errant if statement in isEmail.js file which was only checking for the first double quote (user[0] === '"'). Fixed it by adding a secondary "and" condition along with it, to ensure the local part is completely enclosed in the double quotes (&& user[user.length - 1] === '"').
Checklist