Fix issues running the website locally on windows with npm3

This commit is contained in:
Janic Duplessis 2016-01-02 03:56:32 -05:00
parent e41008f208
commit b174b2fcd9
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ var platformBlacklists = {
function escapeRegExp(pattern) {
if (Object.prototype.toString.call(pattern) === '[object RegExp]') {
return pattern.source;
return pattern.source.replace(/\//g, path.sep);
} else if (typeof pattern === 'string') {
var escaped = pattern.replace(/[\-\[\]\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
// convert the '/' into an escaped local file separator