Parcourir la source

Removing global flag for replacing whitespaces

Gabriel Pillet il y a 11 ans
Parent
commit
80aadaf74e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      plugin/markdown/markdown.js

+ 1 - 1
plugin/markdown/markdown.js

@@ -49,7 +49,7 @@
 			text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}','g'), '\n' );
 		}
 		else if( leadingWs > 1 ) {
-			text = text.replace( new RegExp('\\n? {' + leadingWs + '}','g'), '\n' );
+			text = text.replace( new RegExp('\\n? {' + leadingWs + '}'), '\n' );
 		}
 
 		return text;