Fix textcomplete of extra tags for blockquote not match space character in the between

This commit is contained in:
Wu Cheng-Han 2016-08-15 11:02:11 +08:00
parent e94810ff94
commit fddc2ab38b

View file

@ -3632,7 +3632,7 @@ $(editor.getInputField())
}
},
{ //extra tags for blockquote
match: /(?:^|\n|\s)(\>.*|)((\^|)\[(\^|)\](\[\]|\(\)|\:|))(\w*)$/,
match: /(?:^|\n|\s)(\>.*|\s|)((\^|)\[(\^|)\](\[\]|\(\)|\:|))(\w*)$/,
search: function (term, callback) {
var line = editor.getLine(editor.getCursor().line);
quote = line.match(this.match)[1].trim();