Hello,

We develop a system with the validate plugin for all client side
validation and I see that the email validation in the core of the
plugin accept special characters like "รง" and "/". I make a
alternative validation for e-mail using the specification RFC 2822
strict - http://www.rfc-editor.org/rfc/rfc2822.txt

We called in the company restrictEmail:

/* Email validation that follows the restrict RFC 2822 pattern*/
jQuery.validator.addMethod("restrictEmail", function(value, element) {
        return this.optional(element) || /^[\w-]+(\.[\w-]+)*@(([A-Za-z\d][A-
Za-z\d-]{0,61}[A-Za-z\d]\.)+[A-Za-z]{2,6}|\[\d{1,3}(\.\d{1,3}){3}\])
$/.test(value);
}, "Invalid E-mail");

I thought this should be considered in next versions of validate or
even the main email validation be more accurate for special
characters.

I hope it helps,

Alexandre Magno
Web Developer
http://blog.alexandremagno.net

Reply via email to