route-parser
route-parser copied to clipboard
using an invalid spec like "*/test" causes a confusing regex error.
const a = new RouteParser('*/test')
a.match('hi/test')
causes
Invalid regular expression: /^*/test(?=\?|$)/: Nothing to repeat
Obviously a name needs to be attached to the splat, but it should not error