Skip to content

Non-capturing groups not supported #150

Description

@mihai-moldovan

Hey,
I'm trying to use this pattern:
"(?:www.)?shop.example.com/collections/:handle([^/]+)"

to match these urls:

https://shop.example.com/collections/new-arrivals
https://www.shop.example.com/collections/fall-2018

but not this url:
https://othersubdomain.shop.example.com/collections/new-arrivals

Unfortunately, if use a non-capturing group, somewhere in the pattern cleaning process, the ":" character confuses the framework.
If I use a normal capturing group: "(www.)?shop.example.com/collections/:handle([^/]+)" still doesn't work because it gets confused with the handle parameter

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