Simplify JS regexp to handle issue with FireFox

pull/7/head
Francis Lachapelle 2012-11-22 10:57:21 -05:00
parent 1bf2509d1e
commit a5948b420b
1 changed files with 1 additions and 1 deletions

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;