mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 12:04:39 +00:00
fix index route
This commit is contained in:
@@ -31,7 +31,7 @@ module.exports = function create_matchers(files) {
|
||||
}
|
||||
}
|
||||
|
||||
const pattern = new RegExp(`^${pattern_string}$`);
|
||||
const pattern = new RegExp(`^${pattern_string || '\\/'}$`);
|
||||
|
||||
const test = url => pattern.test(url);
|
||||
|
||||
@@ -41,7 +41,7 @@ module.exports = function create_matchers(files) {
|
||||
|
||||
const params = {};
|
||||
dynamic.forEach((param, i) => {
|
||||
params[param] = match[i + 1] || null;
|
||||
params[param] = match[i + 1];
|
||||
});
|
||||
|
||||
return params;
|
||||
|
||||
Reference in New Issue
Block a user