fix(simpleAutoLinks): fix emails being treated as simple urls

Closes #187
This commit is contained in:
Estevão Soares dos Santos 2015-08-11 05:57:52 +01:00
parent ea6031a25f
commit 7dc3fb1d25
5 changed files with 1 additions and 1 deletions

BIN
dist/showdown.js vendored

Binary file not shown.

BIN
dist/showdown.js.map vendored

Binary file not shown.

BIN
dist/showdown.min.js vendored

Binary file not shown.

Binary file not shown.

View File

@ -15,7 +15,7 @@ showdown.subParser('autoLinks', function (text, options) {
if (options.simplifiedAutoLink) {
text = text.replace(simpleURLRegex, '<a href=\"$1\">$1</a>');
text = text.replace(simpleMailRegex, '<a href=\"$1\">$1</a>');
text = text.replace(simpleMailRegex, replaceMail);
}
function replaceMail(wholeMatch, m1) {