jqBootstrapValidation icon indicating copy to clipboard operation
jqBootstrapValidation copied to clipboard

Doesn't validate emails with TLD .media

Open lazzich opened this issue 10 years ago • 1 comments

The validation works fine if you change line 793 as follows: regex: "[A-Za-z0-9.%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}", regex: "[A-Za-z0-9.%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,5}",

lazzich avatar Oct 21 '15 20:10 lazzich

Actually, if you want to be even more correct, you should allow for regex: "[A-Za-z0-9.%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{1,63}",

TLDs can be between 1 and 63 characters long. The longest existing is 24 characters long. The email regex in this plugin does not support many of the TLDs existing currently. http://data.iana.org/TLD/tlds-alpha-by-domain.txt

monodop avatar Dec 03 '15 23:12 monodop