diff options
author | Gabriel Pillet <gabriel.pillet@knplabs.com> | 2013-10-31 14:02:34 +0100 |
---|---|---|
committer | Gabriel Pillet <gabriel.pillet@knplabs.com> | 2013-10-31 14:02:34 +0100 |
commit | 80aadaf74e901b184d86b536c0c01e0fe98623d0 (patch) | |
tree | 82a691014693ebb7207b6e32bb24453842c42dda /plugin/markdown/markdown.js | |
parent | 080ae79b540c5cb9c16e1613322fec1f9c730b34 (diff) | |
download | perl-software-in-gnu-guix-80aadaf74e901b184d86b536c0c01e0fe98623d0.tar perl-software-in-gnu-guix-80aadaf74e901b184d86b536c0c01e0fe98623d0.tar.gz |
Removing global flag for replacing whitespaces
Diffstat (limited to 'plugin/markdown/markdown.js')
-rwxr-xr-x | plugin/markdown/markdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |