Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
change regex to check for identifiers in a url
Browse files Browse the repository at this point in the history
  • Loading branch information
rowbi-wan committed Jan 17, 2018
1 parent 26d1306 commit ae44698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/laroute.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit ae44698

Please sign in to comment.