aboutsummaryrefslogtreecommitdiff
path: root/plugin/markdown
diff options
context:
space:
mode:
authorGabriel Pillet <gabriel.pillet@knplabs.com>2013-10-31 14:02:34 +0100
committerGabriel Pillet <gabriel.pillet@knplabs.com>2013-10-31 14:02:34 +0100
commit80aadaf74e901b184d86b536c0c01e0fe98623d0 (patch)
tree82a691014693ebb7207b6e32bb24453842c42dda /plugin/markdown
parent080ae79b540c5cb9c16e1613322fec1f9c730b34 (diff)
downloadfreenode-live-2017-presentation-80aadaf74e901b184d86b536c0c01e0fe98623d0.tar
freenode-live-2017-presentation-80aadaf74e901b184d86b536c0c01e0fe98623d0.tar.gz
Removing global flag for replacing whitespaces
Diffstat (limited to 'plugin/markdown')
-rwxr-xr-xplugin/markdown/markdown.js2
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;