Skip to content

Path matching semantics update #2057

Closed
Closed
@blakeembrey

Description

@blakeembrey

I would like to make a breaking change update to the way paths match, but I'm interested in everyones opinions before I implement any changes. My biggest gripe right now is that the special characters outside of a custom matching group restricts the characters that can be used inside of a matching group. I want to change this behaviour so only regex characters can be used inside a matching group and characters outside will be escaped.

Examples:

  • /test? - currently valid, makes the t character optional which really looks like a bug
  • /:test(.*) - currently invalid, periods are being escaped and asterisks are being turned into matching any character groups
  • /(\\d+) - currently won't be indexed properly since we don't have any regex group logic
  • /\\* - currently invalid, can't escape the meaning of special characters and will still become a match all route

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions