瀏覽代碼

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

Closes #187
Estevão Soares dos Santos 10 年之前
父節點
當前提交
7dc3fb1d25
共有 5 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      dist/showdown.js
  2. 0 0
      dist/showdown.js.map
  3. 1 1
      dist/showdown.min.js
  4. 0 0
      dist/showdown.min.js.map
  5. 1 1
      src/subParsers/autoLinks.js

+ 2 - 2
dist/showdown.js

@@ -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 it is too large
+ 0 - 0
dist/showdown.js.map


File diff suppressed because it is too large
+ 1 - 1
dist/showdown.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/showdown.min.js.map


+ 1 - 1
src/subParsers/autoLinks.js

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

Some files were not shown because too many files changed in this diff