nuxt-typed-router 4.0.6 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1120,7 +1120,7 @@ function createPathsFiles({ routesPaths, routesList }) {
|
|
|
1120
1120
|
const hasPrefixStrategy = i18n && i18nOptions?.strategy !== "no_prefix";
|
|
1121
1121
|
const filteredRoutesPaths = routesPaths.filter((route) => !routesPaths.find((r) => `${route.path}/` === r.path)).map((route) => ({
|
|
1122
1122
|
...route,
|
|
1123
|
-
path: route.path.replace(/\(\)/g, "")
|
|
1123
|
+
path: route.path.replace(/\(\)/g, "").replace(/\/\//g, "/")
|
|
1124
1124
|
})).sort((a, b) => {
|
|
1125
1125
|
const pathCountA = a.path.split("/");
|
|
1126
1126
|
const pathCountB = b.path.split("/");
|