fix(isEmail): fixed `isFQDN` still checking email length when `ignore_max_length` is `true` by sakhmedbayev · Pull Request #2128 · validatorjs/validator.js
Fixed the issue when the ignore_max_length option was not honored (did not have any effect) since the isFQDN function had its own check for the email parts length.
Checklist
- PR contains only changes related; no stray files, etc.
- Tests written (where applicable)
sakhmedbayev
changed the title
fix(isEmail): fixed
fix(isEmail): fixed isFQDN still checking email length when ignore_max_length is falseisFQDN still checking email length when ignore_max_length is true
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good, don't forget to document the new option for isFQDN in the README
Code changes look good, don't forget to document the new option for
isFQDNin the README
@WikiRik, thanks, documented
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the fix! 🎉
profnandaa added a commit that referenced this pull request
Feb 1, 2023profnandaa added a commit that referenced this pull request
Feb 1, 2023fix(isEmail): fixed `isFQDN` still checking email length when `ignore_max_length` is `true` profnandaa: clean-up #2128 --------- Co-authored-by: Said Akhmedbayev <said.akh@gmail.com> Co-authored-by: Said Akhmedbayev <said.akhmedbayev@accenture.com>
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