Skip to content

Improve matching '/' path. #1

@tmikus

Description

@tmikus

Hey @MauroJr,

Great library! Just tried using it in my fun Christmas project, and all went smoothly. I made some TypeScript typings for it as well, so once I get a moment I will raise a PR to add it to your library.

One problem I found is with some special handling for a Route('/'), which seems to match everything, instead of just the '/' path.

Is there any particular reason why the '/' route translates into a '*' matcher, or could this be changed to a Regex similar to /\/(?:$|\?.*$)/?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions