ignore trailing slash in pathnames

This commit is contained in:
Rich Harris
2018-01-14 18:15:40 -05:00
parent 681ed005b8
commit 4200446684

View File

@@ -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);