From af710c3ac181267f1bb6ca9a9ce7174319c293f4 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 6 Jun 2011 10:45:22 -0700 Subject: fix wrapping api links into code element --- docs/src/ngdoc.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/src') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index be4efb6b..bcabd3c0 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -82,7 +82,7 @@ Doc.prototype = { var self = this, IS_URL = /^(https?:\/\/|ftps?:\/\/|mailto:|\.|\/)/, - IS_ANGULAR = /^angular\./, + IS_ANGULAR = /^(api\/)?angular\./, parts = trim(text).split(/(
[\s\S]*?<\/pre>|[\s\S]*?<\/doc:\2>)/);
 
     parts.forEach(function(text, i) {
@@ -125,7 +125,6 @@ Doc.prototype = {
         text = text.replace(/{@link\s+([^\s}]+)\s*([^}]*?)\s*}/g,
           function(_all, url, title){
             var isFullUrl = url.match(IS_URL),
-                // FIXME(vojta) angular link could be api/angular now with sections
                 isAngular = url.match(IS_ANGULAR),
                 absUrl = isFullUrl ? url : self.convertUrlToAbsolute(url);
 
-- 
cgit v1.2.3