Validated URL against an Array of URLPatterns. How?
I’ve created the example below to illustrate the desired outcome. Is it possible to do the same but against an array of URLPatterns? // Example URL with two numerical params const url = “https://example.com/app/api/v1/subscribers/1001/users/2001”; // Example URLPattern with two named groups // https://web.dev/urlpattern/ // https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API const urlPattern = new URLPattern({ pathname: “/app/api/v1/subscribers/:subscriberId/users/:userId” }); const urlValidate… Read More Validated URL against an Array of URLPatterns. How?