diff --git a/src/templates/laroute.js b/src/templates/laroute.js index 7051101..bb491f5 100644 --- a/src/templates/laroute.js +++ b/src/templates/laroute.js @@ -88,7 +88,7 @@ if (route.substr(0, 1) !== '/') { route = '/' + route; } - return route.replace(/\//g, '\\/').replace(/\/\{.*?\?\}/g, '[a-zA-Z0-9-_]+'); + return route.replace(/\//g, '\\/').replace(/{.*?}/g, '[a-zA-Z0-9-_]+'); }, currentRoute: function () {