ramiel / router.js

Router.js is a simple and powerful javascript library to handle routing
116 stars 21 forks source link

* should mean zero or more #34

Closed ramiel closed 5 years ago

ramiel commented 5 years ago

The * should mean zero or more up to the next /. Same goes for **.

At the moment that mean 1 or more.

We can also introduce + and ++ to match one or more.

Another possibility is to use path-to-regexp library instead. While this is probably better we should do it now because it breaks some compatibility.