feat(isEmail): allow regexp in host_whitelist and host_blacklist by weikangchia · Pull Request #2494 · validatorjs/validator.js
This PR enhance the host_whitelist and host_blacklist of isEmail validator to use regexp.
References: #562
Checklist
- PR contains only changes related; no stray files, etc.
- README updated (where applicable)
- Tests written (where applicable)
- References provided in PR (where applicable)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good so far
Codecov Report
All modified and coverable lines are covered by tests ✅
Project coverage is 99.96%. Comparing base (
f81d857) to head (541152c).
Report is 16 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@ ## master #2494 +/- ## =========================================== - Coverage 100.00% 99.96% -0.04% =========================================== Files 110 112 +2 Lines 2510 2526 +16 Branches 633 638 +5 =========================================== + Hits 2510 2525 +15 - Partials 0 1 +1
☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.
🚨 Try these New Features:
- Flaky Tests Detection - Detect and resolve failed and flaky tests
WikiRik
changed the title
feat(isEmail): enhance isEmail host_whitelist and host_blacklist to use regexp
feat(isEmail): allow regexp in host_whitelist and host_blacklist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters