Fix bug of wrong syntax highlight when there is %html String in paragraph

This commit is contained in:
Mina Lee 2016-11-21 13:24:50 +01:00
parent 8aad9ea392
commit 2755b49d13

View file

@ -848,7 +848,7 @@
};
var getInterpreterName = function(paragraphText) {
var intpNameRegexp = /%(.+?)\s/g;
var intpNameRegexp = /^\s*%(.+?)\s/g;
var match = intpNameRegexp.exec(paragraphText);
if (match) {
return match[1].trim();