Skip to content

WHATWG URL Pattern: support for route matching #679

@meftunca

Description

@meftunca

What is the problem this feature will solve?

With this support we can increase the spread of ada-url. The library is really fast, but by adding a route matching feature for url, it can be a really inclusive library.

What is the feature you are proposing to solve the problem?

Here is my proposed solution:
/users/:id/friends with “:/” separated by the character “:/” to enable route matching. Of course, there may be more specific examples like
“{id}”,“[a-zAz]”

What alternatives have you considered?

Since this suggestion is usually found in router libraries, it is difficult to give a specific reference, but I have listed an example of its use below

  • :path-variable
  • {path-variable}
  • regex

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