mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fix bug of wrong syntax highlight when there is %html String in paragraph
This commit is contained in:
parent
8aad9ea392
commit
2755b49d13
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue