Kaynağa Gözat

Removing global flag for replacing whitespaces

Gabriel Pillet 11 yıl önce
ebeveyn
işleme
80aadaf74e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;