소스 검색

Removing global flag for replacing whitespaces

Gabriel Pillet 11 년 전
부모
커밋
80aadaf74e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;