mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-25 02:44:29 -06:00
fix: Escaping asterisk to produce valid RegEx
This commit is contained in:
parent
c1d35b04c5
commit
f52f9807a2
@ -1200,7 +1200,7 @@ function _toggleLine(cm, name) {
|
|||||||
var _checkChar = function (name, char) {
|
var _checkChar = function (name, char) {
|
||||||
var map = {
|
var map = {
|
||||||
'quote': '>',
|
'quote': '>',
|
||||||
'unordered-list': '*',
|
'unordered-list': '\\*',
|
||||||
'ordered-list': '\\d+.',
|
'ordered-list': '\\d+.',
|
||||||
};
|
};
|
||||||
var rt = new RegExp(map[name]);
|
var rt = new RegExp(map[name]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user