fix(docs): properly rewrite urls in doc examples at docs-next

This commit is contained in:
Igor Minar 2012-03-29 15:38:04 -07:00
parent 95c5df5958
commit 423242017e

View file

@ -6,7 +6,7 @@ angular.module('ngdocs.directives', [], function($compileProvider) {
for(var j = 0; j < scripts.length; j++) {
var src = scripts[j].src;
if (src && src.match(angularJsRegex)) {
angularJsUrl = src.replace('docs.angularjs.org', 'code.angularjs.org');
angularJsUrl = src.replace(/docs(-next)?\.angularjs\.org/, 'code.angularjs.org');
continue;
}
}