@sveltejs/kit 2.9.0 → 2.9.1
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/package.json
CHANGED
|
@@ -136,7 +136,8 @@ function split_route_id(id) {
|
|
|
136
136
|
return get_route_segments(
|
|
137
137
|
id
|
|
138
138
|
// remove all [[optional]] parts unless they're at the very end
|
|
139
|
-
|
|
139
|
+
// or it ends with a route group
|
|
140
|
+
.replace(/\[\[[^\]]+\]\](?!(?:\/\([^/]+\))*$)/g, '')
|
|
140
141
|
).filter(Boolean);
|
|
141
142
|
}
|
|
142
143
|
|
package/src/version.js
CHANGED