@sveltejs/kit 1.9.2 → 1.9.3
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 +1 -1
- package/src/utils/routing.js +8 -0
package/package.json
CHANGED
package/src/utils/routing.js
CHANGED
|
@@ -152,6 +152,14 @@ export function exec(match, params, matchers) {
|
|
|
152
152
|
|
|
153
153
|
if (!param.matcher || matchers[param.matcher](value)) {
|
|
154
154
|
result[param.name] = value;
|
|
155
|
+
|
|
156
|
+
// Now that the params match, reset the buffer if the next param isn't the [...rest]
|
|
157
|
+
// and the next value is defined, otherwise the buffer will cause us to skip values
|
|
158
|
+
const next_param = params[i + 1];
|
|
159
|
+
const next_value = values[i + 1];
|
|
160
|
+
if (next_param && !next_param.rest && next_value) {
|
|
161
|
+
buffered = 0;
|
|
162
|
+
}
|
|
155
163
|
continue;
|
|
156
164
|
}
|
|
157
165
|
|