mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(docs): properly rewrite urls in doc examples at docs-next
This commit is contained in:
parent
95c5df5958
commit
423242017e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue