Fix client-side validation email regex

This commit is contained in:
Erik Michaels-Ober 2012-01-25 11:15:56 -08:00
parent 31cefcd2d0
commit c95ffefc3c
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ $(function() {
var submitButton = $("#combo-form input[type='submit']");
$(submitButton).attr("disabled", true);
var errors = []
if(!/[\w\.%\+\]+@[\w\]+\.+[\w]{2,}/.test($('#user_email').val())) {
if(!/[\w\.%\+]+@[\w]+\.+[\w]{2,}/.test($('#user_email').val())) {
errors.push($('#user_email'));
$('#user_email').parent().addClass('error');
} else {