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 7 additions and 7 deletions

4
dist/showdown.js vendored
View File

@ -1,4 +1,4 @@
;/*! showdown 02-08-2015 */
;/*! showdown 11-08-2015 */
(function(){
/**
* Created by Tivie on 13-07-2015.
@ -1011,7 +1011,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) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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) {