mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 05:17:15 +00:00
Simplify JS regexp to handle issue with FireFox
This commit is contained in:
1 parent
1bf2509d1e
commit
a5948b420b
1 file changed
+1
-1
@@ -118,7 +118,7 @@ function extractEmailAddress(mailTo) {
|
||||
var email = "";
|
||||
|
||||
var emailre
|
||||
= /(([a-zA-Z0-9\._-]+)*[a-zA-Z0-9_-]+@([a-zA-Z0-9\._-]+)*[a-zA-Z0-9_-]+)/;
|
||||
= /([a-zA-Z0-9\._-]*[a-zA-Z0-9_-]+@[a-zA-Z0-9\._-]*[a-zA-Z0-9])/;
|
||||
if (emailre.test(mailTo)) {
|
||||
emailre.exec(mailTo);
|
||||
email = RegExp.$1;
|
||||
|
||||
Reference in new issue
Block a user