Function get_named_route_regex

Source
pub fn get_named_route_regex(normalized_route: &str) -> NamedRouteRegex
Expand description

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.

When the routeKeys need to be prefixed to uniquely identify internally the “prefixRouteKey” arg should be “true” currently this is only the case when creating the routes-manifest during the build