corey.gilmore
16 Apr 2007, 2:54 PM
The email regexp in Ext.form.VTypes is probably a bit too restrictive by default, only working with domains matching domain.tld. Domains like user@host.co.uk or user@some-host.com won't match.
Currently:
var email = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,4}){1,2}$/;
This will allow more subdomains, hyphens in the subdomain and only letters in the TLD/country code:
var email = /^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/;
Currently:
var email = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,4}){1,2}$/;
This will allow more subdomains, hyphens in the subdomain and only letters in the TLD/country code:
var email = /^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/;