Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: please, add URLPattern web api #14732

Closed
MrCarbone opened this issue Oct 22, 2024 · 2 comments
Closed

suggestion: please, add URLPattern web api #14732

MrCarbone opened this issue Oct 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@MrCarbone
Copy link

What is the problem this feature would solve?

const pattern = new URLPattern({ pathname: "/books/:id" });
console.log(pattern.test("https://example.com/books/123")); // true
console.log(pattern.exec("https://example.com/books/123").pathname.groups); // { id: '123' }

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

for more control on of the url

What alternatives have you considered?

No response

@MrCarbone MrCarbone added the enhancement New feature or request label Oct 22, 2024
@TiBianMod
Copy link

#2286

@Electroid
Copy link
Contributor

Duplicate of #2286

@Electroid Electroid marked this as a duplicate of #2286 Oct 22, 2024
@Electroid Electroid closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants