mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
fix(simpleAutoLinks): fix emails being treated as simple urls
Closes #187
This commit is contained in:
parent
ea6031a25f
commit
7dc3fb1d25
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.js.map
vendored
BIN
dist/showdown.js.map
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js.map
vendored
BIN
dist/showdown.min.js.map
vendored
Binary file not shown.
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user