mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
ignore trailing slash in pathnames
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user