repocrypts / Validator

Client-side javascript validator library ports from Laravel 5.2
MIT License
46 stars 22 forks source link

Email validation #18

Closed oscarvegar closed 5 years ago

oscarvegar commented 5 years ago

Hi, new domain extensions have more than 4 digits, example domain.rocks, backbone.studio, etc. This REGEX needs to be updated.

Line 805 of Validator.js

return this.validateMatch(name, value, /^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$/i);

jfstn commented 5 years ago

I'll take care of this for the next release. :)

jfstn commented 5 years ago

@oscarvegar In v1.0.8 regex was updated to allow email domains with a max of 8 characters.