Skip to content

Ending slash is output for pattern without ending slash #5

@TrySound

Description

@TrySound

Hi! I decided to build own router and stuck on small mismatch with path-to-regexp behaviour.

I expect /:page matching /dashboard/activities do not include slash in the end of dashboard in exec array.
https://codesandbox.io/s/intelligent-fermat-mwv42

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