Contribute to jquery validation plugin

We are trying to contribute to jquery validation plugin. Update the jquery.validation.js core and added perfect email regular expression to validate complete email with format “email@domain.zone”.

Update core.js : Email Regular expression

Previous regular expression for email allows this email as valid email address : “user@example”

Current regular expression for email allows this email as valid email address : “user@example.com”

The previous email example tested on this url : http://jqueryvalidation.org/email-method

Please update the example with updated regular expression.

Filename : src/core.js

On line 1121, I change the regular expression for email checking

The previous regular expresssion :  /^[a-zA-Z0-9.!#$%&’*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/

New regular expression :  /^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]{2,4}$/

Contribute to jquery validation plugin :

Link : Check my commit here