forked from 0x2620/pandora
update doc parser regexp
This commit is contained in:
parent
f989b5bd1a
commit
784a0c8df2
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ pandora.ui.apiDialog = function() {
|
||||||
var code = actions[id].code[1],
|
var code = actions[id].code[1],
|
||||||
source = actions[id].code[0],
|
source = actions[id].code[0],
|
||||||
line = Math.round(Ox.last(source.split(':')) || 0),
|
line = Math.round(Ox.last(source.split(':')) || 0),
|
||||||
doc = actions[id].doc.replace(/\n(?=(takes|returns) \{)/g, '\n\n'),
|
doc = actions[id].doc.replace(/\n(?=(takes \{|returns \{|NOTE: ))/g, '\n\n'),
|
||||||
$code, $doc;
|
$code, $doc;
|
||||||
$doc = Ox.SyntaxHighlighter({
|
$doc = Ox.SyntaxHighlighter({
|
||||||
source: doc,
|
source: doc,
|
||||||
|
|
Loading…
Reference in a new issue