validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

Add whitelist host to isEmail validation.

Open poor-cooder opened this issue 3 years ago • 4 comments

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)

poor-cooder avatar Jan 31 '22 21:01 poor-cooder

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 data Powered by Codecov. Last update cfcf911...6353545. Read the comment docs.

codecov[bot] avatar Jan 31 '22 21:01 codecov[bot]

Just fix the m/c on README and we should be good to go.

profnandaa avatar Apr 22 '22 03:04 profnandaa

Just fix the m/c on README and we should be good to go.

Hi, Thank you. The conflict has been fixed! 🚀

poor-cooder avatar Apr 28 '22 22:04 poor-cooder

Can this be merged and closed now?

SpiffGreen avatar Jul 30 '22 17:07 SpiffGreen