summaryrefslogtreecommitdiff
path: root/program/js/common.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-05-18 19:12:28 +0000
committerthomascube <thomas@roundcube.net>2006-05-18 19:12:28 +0000
commitbf39ad587b1c5f7cb6f1d5c97af5a2c1e9863de4 (patch)
treea0438be1d8ccac61be9a0ed38a6d06fd3b7049b5 /program/js/common.js
parent4aaddb32e1bd1a7833478f1fd4194507dba2c924 (diff)
Allow & in e-mail addresses
Diffstat (limited to 'program/js/common.js')
-rw-r--r--program/js/common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/common.js b/program/js/common.js
index 6cc279534..f9fb9c1db 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -269,7 +269,7 @@ function rcube_check_email(input, inline)
{
if (input && window.RegExp)
{
- var reg_str = '([a-z0-9][-a-z0-9\.\+_]*)\@(([-a-z0-9][\.]?)*[a-z0-9]\.[a-z]{2,9})';
+ var reg_str = '([a-z0-9][-a-z0-9\.\+_&]*)\@(([-a-z0-9][\.]?)*[a-z0-9]\.[a-z]{2,9})';
var reg1 = inline ? new RegExp(reg_str, 'i') : new RegExp('^'+reg_str+'$', 'i');
var reg2 = /[\._\-]{2}/;
return reg1.test(input) && !reg2.test(input) ? true : false;