Skip to content

Commit fc52b81

Browse files
committed
fix(docs): update the example widget regexp for detecting angular.js url
so that we don't show angular-cookies instead of angular.js
1 parent ae1aee2 commit fc52b81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/templates/doc_widgets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ angular.module('ngdocs.directives', [], function($compileProvider) {
22

33
var angularJsUrl;
44
var scripts = document.getElementsByTagName("script");
5-
var angularJsRegex = /^(|.*\/)angular(-.*?)?(\.min)?.js(\?[^#]*)?(#(.*))?$/;
5+
var angularJsRegex = /^(|.*\/)angular(-\d.*?)?(\.min)?.js(\?[^#]*)?(#(.*))?$/;
66
for(var j = 0; j < scripts.length; j++) {
77
var src = scripts[j].src;
88
if (src && src.match(angularJsRegex)) {

0 commit comments

Comments
 (0)