route-parser icon indicating copy to clipboard operation
route-parser copied to clipboard

using an invalid spec like "*/test" causes a confusing regex error.

Open cellog opened this issue 7 years ago • 0 comments

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

cellog avatar Apr 18 '17 02:04 cellog