2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-23 09:54:28 -06:00

fix: Escaping asterisk to produce valid RegEx

This commit is contained in:
mrlugilugi 2021-06-09 13:14:20 +02:00 committed by GitHub
parent c1d35b04c5
commit f52f9807a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);