diff options
| author | Igor Minar | 2012-03-29 15:38:04 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-03-29 16:10:40 -0700 |
| commit | 423242017e56c103b07b7f576dbd52a5a38c331a (patch) | |
| tree | dcb991b81ef2cb07bfd937620e113d4399c65dc6 /docs/src | |
| parent | 95c5df5958f6d42d08846fa40c10cb279ce76ee9 (diff) | |
| download | angular.js-423242017e56c103b07b7f576dbd52a5a38c331a.tar.bz2 | |
fix(docs): properly rewrite urls in doc examples at docs-next
Diffstat (limited to 'docs/src')
| -rw-r--r-- | docs/src/templates/doc_widgets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/templates/doc_widgets.js b/docs/src/templates/doc_widgets.js index 6407b064..fe938f14 100644 --- a/docs/src/templates/doc_widgets.js +++ b/docs/src/templates/doc_widgets.js @@ -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; } } |
