From f52f9807a228789265d58192288fe085bfe4ecc0 Mon Sep 17 00:00:00 2001 From: mrlugilugi Date: Wed, 9 Jun 2021 13:14:20 +0200 Subject: [PATCH] fix: Escaping asterisk to produce valid RegEx --- src/js/easymde.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/easymde.js b/src/js/easymde.js index eddb90ea..5d2c21cf 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -1200,7 +1200,7 @@ function _toggleLine(cm, name) { var _checkChar = function (name, char) { var map = { 'quote': '>', - 'unordered-list': '*', + 'unordered-list': '\\*', 'ordered-list': '\\d+.', }; var rt = new RegExp(map[name]);