From f63cf61a9d1baac2a3a5d9a288739b78e6d8f10c Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Fri, 8 Dec 2017 14:36:43 -0500 Subject: [PATCH] cleanup regex --- lms/static/js/Markdown.Converter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/static/js/Markdown.Converter.js b/lms/static/js/Markdown.Converter.js index fc89a74dfe..e0f2c8f95d 100644 --- a/lms/static/js/Markdown.Converter.js +++ b/lms/static/js/Markdown.Converter.js @@ -429,7 +429,7 @@ else text = _DoItalicsAndBold(text); // Do hard breaks: - text = text.replace(/ {2}+\n/g, '
\n'); + text = text.replace(/ +\n/g, '
\n'); return text; }