Simplify the email regexp

This commit is contained in:
Nicolas Le Goff
2013-06-11 12:41:25 +02:00
parent ab6bef38f1
commit c990da08ec

View File

@@ -140,7 +140,7 @@ define([
numericRegex : /^[0-9]+$/, numericRegex : /^[0-9]+$/,
integerRegex : /^\-?[0-9]+$/, integerRegex : /^\-?[0-9]+$/,
decimalRegex : /^\-?[0-9]*\.?[0-9]+$/, decimalRegex : /^\-?[0-9]*\.?[0-9]+$/,
emailRegex : /^[a-zA-Z0-9.!#$%&amp,'*+\-\/=?\^_`{|}~\-]+@[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*$/, emailRegex : /^[^@]+@[^@]+\.[^@]+$/,
alphaRegex : /^[a-z]+$/i, alphaRegex : /^[a-z]+$/i,
alphaNumericRegex : /^[a-z0-9]+$/i, alphaNumericRegex : /^[a-z0-9]+$/i,
alphaDashRegex : /^[a-z0-9_\-]+$/i, alphaDashRegex : /^[a-z0-9_\-]+$/i,