Skip to content

Commit 945facb

Browse files
committed
Hotfix. Do not use this, it's a temporary solution.
Problem already fixed in angular/angular.js#8200 , but still doesn't merged to upstream. This commit fixes bug in bower package for deployment-only. Hope fix mentioned above will be merged soon, and this repo will be purged.
1 parent 2832854 commit 945facb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular-route.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function $RouteProvider(){
614614
if (i === 0) {
615615
result.push(segment);
616616
} else {
617-
var segmentMatch = segment.match(/(\w+)(.*)/);
617+
var segmentMatch = segment.match(/(\w+)[?*]?(.*)/);
618618
var key = segmentMatch[1];
619619
result.push(params[key]);
620620
result.push(segmentMatch[2] || '');

0 commit comments

Comments
 (0)