Explorar el Código

chore: small blockGamut regex fix

Estevao Soares dos Santos hace 8 años
padre
commit
cf2a9075ae
Se han modificado 5 ficheros con 6 adiciones y 6 borrados
  1. 3 3
      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. 2 2
      src/subParsers/blockGamut.js

+ 3 - 3
dist/showdown.js

@@ -1,4 +1,4 @@
-;/*! showdown 19-12-2016 */
+;/*! showdown 20-12-2016 */
 (function(){
 /**
  * Created by Tivie on 13-07-2015.
@@ -1259,8 +1259,8 @@ showdown.subParser('blockGamut', function (text, options, globals) {
   // Do Horizontal Rules:
   var key = showdown.subParser('hashBlock')('<hr />', options, globals);
   text = text.replace(/^( ?-){3,}[ \t]*$/gm, key);
-  text = text.replace(/^( ?\*){3,}[ \t]*$$/gm, key);
-  text = text.replace(/^( ?_){3,}[ \t]*$$/gm, key);
+  text = text.replace(/^( ?\*){3,}[ \t]*$/gm, key);
+  text = text.replace(/^( ?_){3,}[ \t]*$/gm, key);
 
   text = showdown.subParser('lists')(text, options, globals);
   text = showdown.subParser('codeBlocks')(text, options, globals);

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/showdown.js.map


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1 - 1
dist/showdown.min.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/showdown.min.js.map


+ 2 - 2
src/subParsers/blockGamut.js

@@ -15,8 +15,8 @@ showdown.subParser('blockGamut', function (text, options, globals) {
   // Do Horizontal Rules:
   var key = showdown.subParser('hashBlock')('<hr />', options, globals);
   text = text.replace(/^( ?-){3,}[ \t]*$/gm, key);
-  text = text.replace(/^( ?\*){3,}[ \t]*$$/gm, key);
-  text = text.replace(/^( ?_){3,}[ \t]*$$/gm, key);
+  text = text.replace(/^( ?\*){3,}[ \t]*$/gm, key);
+  text = text.replace(/^( ?_){3,}[ \t]*$/gm, key);
 
   text = showdown.subParser('lists')(text, options, globals);
   text = showdown.subParser('codeBlocks')(text, options, globals);

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio