@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "SvelteKit is the fastest way to build Svelte apps",
5
5
  "keywords": [
6
6
  "framework",
@@ -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
- .replace(/\[\[[^\]]+\]\](?!$)/g, '')
139
+ // or it ends with a route group
140
+ .replace(/\[\[[^\]]+\]\](?!(?:\/\([^/]+\))*$)/g, '')
140
141
  ).filter(Boolean);
141
142
  }
142
143
 
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '2.9.0';
4
+ export const VERSION = '2.9.1';