Преглед на файлове

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

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/showdown.js.map


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/showdown.min.js


Файловите разлики са ограничени, защото са твърде много
+ 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) {

Някои файлове не бяха показани, защото твърде много файлове са промени