Skip to content

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

@cellog

Description

@cellog
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions