update doc parser regexp

This commit is contained in:
rolux 2014-12-18 12:49:02 +00:00
parent f989b5bd1a
commit 784a0c8df2

View file

@ -171,7 +171,7 @@ pandora.ui.apiDialog = function() {
var code = actions[id].code[1],
source = actions[id].code[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;
$doc = Ox.SyntaxHighlighter({
source: doc,