Simplify JS regexp to handle issue with FireFox

This commit is contained in:
Francis Lachapelle
2012-11-22 10:57:21 -05:00
parent 1bf2509d1e
commit a5948b420b
+1 -1
View File
@@ -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;