diff --git a/src/ng/route.js b/src/ng/route.js index 298732aac0b0..022cda108d9e 100644 --- a/src/ng/route.js +++ b/src/ng/route.js @@ -326,6 +326,12 @@ function $RouteProvider(){ if (regex.match(paramRegExp)) { regex = regex.replace(paramRegExp, "([^\\/]*)$1"); params.push(param); + } else { + var specialParamRegExp = new RegExp("\\*" + param + "([\\W])"); + if (regex.match(specialParamRegExp)) { + regex = regex.replace(specialParamRegExp, "(.*)$1"); + params.push(param); + } } } });