Skip to content
Snippets Groups Projects
Commit 40b71be9 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

bugfix EmailUtil.extractAddress when using a begin AND end apostrophe

parent 1b4e07a2
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,7 @@ function EmailUtils () {}
EmailUtils.extractAddress = function (pFullMailAddress)
{
//special treatment for crazy illegal addresses which can be sent in Outlook
var mailAddress = pFullMailAddress.replace("<'", "<").replace("'>", ">").replace(/^'|'$/, "");
// logging.log("mailAddress>>" + mailAddress)
var mailAddress = pFullMailAddress.replace("<'", "<").replace("'>", ">").replace(/^'|'$/g, "");
mailAddress = mail.extractAddress(mailAddress);
return mailAddress;
};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment