Expand description
The following code was mostly generated using GTP-4 from next.js/packages/next/src/shared/lib/router/utils/route-regex.ts
Structs§
Functions§
- get_
named_ middleware_ regex - Generates a named regexp. This is intended to be using for build time only.
- get_
named_ route_ regex - This function extends
getRouteRegex
generating also a named regexp where each group is named along with a routeKeys object that indexes the assigned named group with its corresponding key. - get_
route_ regex - From a normalized route this function generates a regular expression and a corresponding groups object intended to be used to store matching groups from the regular expression.