From e7eb9e89366306ad3e578f2d4cb1d6aa7efc70d4 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Dec 2014 17:12:53 +0000 Subject: [PATCH] fix regexp --- static/js/apiDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/apiDialog.js b/static/js/apiDialog.js index 4133aba53..0f846c816 100644 --- a/static/js/apiDialog.js +++ b/static/js/apiDialog.js @@ -182,7 +182,7 @@ pandora.ui.apiDialog = function() { .appendTo($text); $code = Ox.SyntaxHighlighter({ showLineNumbers: true, - source: code.replace(/\s*?'''.+?'''\n/gs, ''), + source: code.replace(/\s*?'''[\s\S]+?'''\n/g, ''), offset: line }) .css({