diff options
| author | Igor Minar | 2012-03-29 16:10:04 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-03-29 16:10:40 -0700 |
| commit | fc52b81d5288897b351397cd5a21aa98a54cca70 (patch) | |
| tree | 5b2bc41b5dc07d601e2dab183de45ac01b64268e | |
| parent | ae1aee2b6c5755e303c62943abba03bda3a6971e (diff) | |
| download | angular.js-fc52b81d5288897b351397cd5a21aa98a54cca70.tar.bz2 | |
fix(docs): update the example widget regexp for detecting angular.js url
so that we don't show angular-cookies instead of angular.js
| -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 fe938f14..50de4ed3 100644 --- a/docs/src/templates/doc_widgets.js +++ b/docs/src/templates/doc_widgets.js @@ -2,7 +2,7 @@ angular.module('ngdocs.directives', [], function($compileProvider) { var angularJsUrl; var scripts = document.getElementsByTagName("script"); - var angularJsRegex = /^(|.*\/)angular(-.*?)?(\.min)?.js(\?[^#]*)?(#(.*))?$/; + var angularJsRegex = /^(|.*\/)angular(-\d.*?)?(\.min)?.js(\?[^#]*)?(#(.*))?$/; for(var j = 0; j < scripts.length; j++) { var src = scripts[j].src; if (src && src.match(angularJsRegex)) { |
