UNPKG

next

Version:

The React Framework

11 lines (10 loc) 451 B
import { extractInterceptionRouteInformation, isInterceptionRouteAppPath } from '../../../../server/lib/interception-routes'; // Identify /[param]/ in route string const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/; export function isDynamicRoute(route) { if (isInterceptionRouteAppPath(route)) { route = extractInterceptionRouteInformation(route).interceptedRoute; } return TEST_ROUTE.test(route); } //# sourceMappingURL=is-dynamic.js.map