router.js
router.js copied to clipboard
Support named capturing groups
If a route is defined through a RegExp, it should put into params any named capturing group. The name will be the key in the params object. This needs that the language supports named capturing group so we need to refer to https://github.com/tc39/proposal-regexp-named-groups/blob/master/README.md