mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(docs): update the example widget regexp for detecting angular.js url
so that we don't show angular-cookies instead of angular.js
This commit is contained in:
parent
ae1aee2b6c
commit
fc52b81d52
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue