URLPattern is a global and follows the URL Pattern Standard, including the
ignoreCase option and hasRegExpGroups.
new URLPattern({ pathname: "/users/:id" }).exec({ pathname: "/users/42" }).pathname.groups.id; // "42"The URLPattern global for matching URLs.
URLPattern is a global and follows the URL Pattern Standard, including the
ignoreCase option and hasRegExpGroups.
new URLPattern({ pathname: "/users/:id" }).exec({ pathname: "/users/42" }).pathname.groups.id; // "42"