18a9c7e371
* Update `packages/` * Update examples * Update tests * Update bench * Update top level files * Fix build * trigger
6 lines
172 B
TypeScript
6 lines
172 B
TypeScript
// Identify /[param]/ in route string
|
|
const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/
|
|
|
|
export function isDynamicRoute(route: string): boolean {
|
|
return TEST_ROUTE.test(route)
|
|
}
|