aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngRoute/route.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ngRoute/route.js')
-rw-r--r--src/ngRoute/route.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ngRoute/route.js b/src/ngRoute/route.js
index cd911ada..8a6dacd4 100644
--- a/src/ngRoute/route.js
+++ b/src/ngRoute/route.js
@@ -177,7 +177,9 @@ function $RouteProvider(){
+ (optional ? '' : slash)
+ '(?:'
+ (optional ? slash : '')
- + (star && '(.+)?' || '([^/]+)?') + ')'
+ + (star && '(.+?)' || '([^/]+)')
+ + (optional || '')
+ + ')'
+ (optional || '');
})
.replace(/([\/$\*])/g, '\\$1');