summaryrefslogtreecommitdiffstats
path: root/js/vendor/angular-route/angular-route.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-18 17:13:56 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-18 17:13:56 +0100
commitc4d9c7a30adf34aa52bf5e7736b25264203b838c (patch)
tree81ecdb761071719e2bf16d077f42121c53d98b46 /js/vendor/angular-route/angular-route.js
parenta2e3490f8ee635c5edf9b951b55c3795aab3d075 (diff)
fix #365
Diffstat (limited to 'js/vendor/angular-route/angular-route.js')
-rw-r--r--js/vendor/angular-route/angular-route.js24
1 files changed, 19 insertions, 5 deletions
diff --git a/js/vendor/angular-route/angular-route.js b/js/vendor/angular-route/angular-route.js
index 539edc47d..9c09fff5a 100644
--- a/js/vendor/angular-route/angular-route.js
+++ b/js/vendor/angular-route/angular-route.js
@@ -1,5 +1,5 @@
/**
- * @license AngularJS v1.3.2
+ * @license AngularJS v1.3.3
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
@@ -151,6 +151,9 @@ function $RouteProvider() {
if (angular.isUndefined(routeCopy.reloadOnSearch)) {
routeCopy.reloadOnSearch = true;
}
+ if (angular.isUndefined(routeCopy.caseInsensitiveMatch)) {
+ routeCopy.caseInsensitiveMatch = this.caseInsensitiveMatch;
+ }
routes[path] = angular.extend(
routeCopy,
path && pathRegExp(path, routeCopy)
@@ -158,9 +161,9 @@ function $RouteProvider() {
// create redirection for trailing slashes
if (path) {
- var redirectPath = (path[path.length-1] == '/')
- ? path.substr(0, path.length-1)
- : path +'/';
+ var redirectPath = (path[path.length - 1] == '/')
+ ? path.substr(0, path.length - 1)
+ : path + '/';
routes[redirectPath] = angular.extend(
{redirectTo: path},
@@ -171,6 +174,17 @@ function $RouteProvider() {
return this;
};
+ /**
+ * @ngdoc property
+ * @name $routeProvider#caseInsensitiveMatch
+ * @description
+ *
+ * A boolean property indicating if routes defined
+ * using this provider should be matched using a case sensitive
+ * algorithm. Defaults to `false`.
+ */
+ this.caseInsensitiveMatch = false;
+
/**
* @param path {string} path
* @param opts {Object} options
@@ -639,7 +653,7 @@ function $RouteProvider() {
*/
function interpolate(string, params) {
var result = [];
- angular.forEach((string||'').split(':'), function(segment, i) {
+ angular.forEach((string || '').split(':'), function(segment, i) {
if (i === 0) {
result.push(segment);
} else {