Skip to content

Commit 4525806

Browse files
committed
Merge pull request #62 from koteus/master
Allow slash in filename regex
2 parents a9fc7f4 + 75fa787 commit 4525806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function(compiler, options) {
2424
var str = options.filename
2525
.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")
2626
.replace(/\\\[[a-z]+\\\]/ig, ".+");
27-
options.filename = new RegExp("^" + str + "$");
27+
options.filename = new RegExp("^[\/]{0,1}" + str + "$");
2828
}
2929
}
3030

0 commit comments

Comments
 (0)