[-] BO : Fix bug #PSCFI-6755 "+" in email

This commit is contained in:
gRoussac
2013-05-23 16:14:31 +02:00
parent b2bb233dc9
commit 9e2c5bfcb9

View File

@@ -24,7 +24,7 @@
*/
//constant
verifMailREGEX = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/;
verifMailREGEX = /^([\w+-]+(?:\.[\w+-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/;
function verifyMail(testMsg, testSubject)
{