@tanstack/router-generator
Advanced tools
Comparing version 1.34.8 to 1.35.4
@@ -9,2 +9,3 @@ import path from "path"; | ||
const routeGroupPatternRegex = /\(.+\)/g; | ||
const possiblyNestedRouteGroupPatternRegex = /\([^/]+\)\/?/g; | ||
async function getRouteNodes(config) { | ||
@@ -554,3 +555,3 @@ const { routeFilePrefix, routeFileIgnorePrefix, routeFileIgnorePattern } = config; | ||
function removeGroups(s) { | ||
return s.replaceAll(routeGroupPatternRegex, "").replaceAll("//", "/"); | ||
return s.replace(possiblyNestedRouteGroupPatternRegex, ""); | ||
} | ||
@@ -557,0 +558,0 @@ function determineNodePath(node) { |
{ | ||
"name": "@tanstack/router-generator", | ||
"version": "1.34.8", | ||
"version": "1.35.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -11,2 +11,3 @@ import path from 'path' | ||
const routeGroupPatternRegex = /\(.+\)/g | ||
const possiblyNestedRouteGroupPatternRegex = /\([^/]+\)\/?/g | ||
@@ -778,3 +779,3 @@ export type RouteNode = { | ||
function removeGroups(s: string) { | ||
return s.replaceAll(routeGroupPatternRegex, '').replaceAll('//', '/') | ||
return s.replace(possiblyNestedRouteGroupPatternRegex, '') | ||
} | ||
@@ -781,0 +782,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183035
2385