jadKhoury1 / simple-body-validator

This package is inspired by Laravel validation mechanism, and aims to make body validation easier for Javascript developers
https://simple-body-validator.com
MIT License
28 stars 6 forks source link

Email Validation is considering a valid email address to be invalid #26

Closed ghost closed 1 year ago

ghost commented 1 year ago

Example email address which are considered invalid - demo@example.online

I have a feeling this is due to the top-level-domains being restricted to be either 2 or 3 characters

salamwaddah commented 1 year ago

valid TLDs (from ICANN) can be as long as 24 characters http://data.iana.org/TLD/tlds-alpha-by-domain.txt

jadKhoury1 commented 1 year ago

Hello Raif, thank you for raising the issue, I accepted the merge and published the change on npm under the version 1.2.12

raif-ar commented 1 year ago

Thanks Jad 😃