diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-05-18 19:12:28 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-05-18 19:12:28 +0000 |
| commit | 8a58d38b04b79b71df95750ee7eeaf46fe4b5dd9 (patch) | |
| tree | 2118f7e42de318d3a4361d26fc56a5c5e4216d7f /roundcubemail | |
| parent | acdd56a7d56289541993d7a79bbc7587c3e4e642 (diff) | |
Allow & in e-mail addresses
git-svn-id: https://svn.roundcube.net/trunk@235 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/program/js/common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index 6cc279534..f9fb9c1db 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/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; |
