Skip to content

Commit

Permalink
fix: Escaping asterisk to produce valid RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlugilugi committed Jun 9, 2021
1 parent c1d35b0 commit f52f980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/easymde.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit f52f980

Please sign in to comment.