Fix client-side validation email regex
This commit is contained in:
parent
31cefcd2d0
commit
c95ffefc3c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue