From c990da08ec8c5e5205b2323f1f2a5965535e8645 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Tue, 11 Jun 2013 12:41:25 +0200 Subject: [PATCH] Simplify the email regexp --- www/scripts/common/validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/scripts/common/validator.js b/www/scripts/common/validator.js index 825dcd6a38..6ee423a926 100644 --- a/www/scripts/common/validator.js +++ b/www/scripts/common/validator.js @@ -140,7 +140,7 @@ define([ numericRegex : /^[0-9]+$/, integerRegex : /^\-?[0-9]+$/, decimalRegex : /^\-?[0-9]*\.?[0-9]+$/, - emailRegex : /^[a-zA-Z0-9.!#$%&,'*+\-\/=?\^_`{|}~\-]+@[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*$/, + emailRegex : /^[^@]+@[^@]+\.[^@]+$/, alphaRegex : /^[a-z]+$/i, alphaNumericRegex : /^[a-z0-9]+$/i, alphaDashRegex : /^[a-z0-9_\-]+$/i,