Add whitelist host to isEmail validation.
Add host whitelist to is Email validation. closes: #1912
Add a new option (whitelist host) to isEmail options to check if the email domain is in it or not, if it was not in the whitelist host it fails.
Checklist
- [x] PR contains only changes related; no stray files, etc.
- [x] README updated (where applicable)
- [x] Tests written (where applicable)
Codecov Report
Merging #1920 (6353545) into master (cfcf911) will not change coverage. The diff coverage is
100.00%.
@@ Coverage Diff @@
## master #1920 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 103 103
Lines 2097 2099 +2
Branches 473 474 +1
=========================================
+ Hits 2097 2099 +2
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/lib/isEmail.js | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update cfcf911...6353545. Read the comment docs.
Just fix the m/c on README and we should be good to go.
Just fix the m/c on README and we should be good to go.
Hi, Thank you. The conflict has been fixed! 🚀
Can this be merged and closed now?