From ac6e1306ec2126f9c8e67b4a26d8f03001abf73d Mon Sep 17 00:00:00 2001 From: Di Peng Date: Fri, 19 Aug 2011 12:06:59 -0700 Subject: fix(sample): Fix for jsFiddle integration --- docs/src/ngdoc.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docs/src/ngdoc.js') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 91c4662a..8fcf3cd5 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -111,9 +111,11 @@ Doc.prototype = { ''; }); } else if (isDocWidget('example')) { - text = text.replace(/()([\s\S]*)(<\/doc:source>)/mi, - function(_, before, content, after){ - return '
' + htmlEscape(content) + '
'; + text = text.replace(/([\s\S]*)<\/doc:source>/mi, + function(_, jsfiddle, content){ + return '
' +
+                      htmlEscape(content) +
+                   '
'; }); text = text.replace(/()([\s\S]*)(<\/doc:scenario>)/mi, function(_, before, content, after){ -- cgit v1.2.3