mirror of https://github.com/status-im/metro.git
Fix issues running the website locally on windows with npm3
This commit is contained in:
parent
e41008f208
commit
b174b2fcd9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue