From 80aadaf74e901b184d86b536c0c01e0fe98623d0 Mon Sep 17 00:00:00 2001 From: Gabriel Pillet Date: Thu, 31 Oct 2013 14:02:34 +0100 Subject: [PATCH] Removing global flag for replacing whitespaces --- plugin/markdown/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index d6c6c45..23a3ed4 100755 --- a/plugin/markdown/markdown.js +++ b/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;