mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
correct regular expression
This commit is contained in:
4
nodemon
4
nodemon
@@ -78,7 +78,9 @@ require('path').exists(ignoreFilePath, function () {
|
||||
}
|
||||
});
|
||||
ignoreFileTime = stat.mtime;
|
||||
reIgnoreFiles = new RegExp(ignoreFiles.join('|'))
|
||||
reIgnoreFiles = new RegExp(ignoreFiles.map(function(file) {
|
||||
return file.replace(/\./g, '\\.').replace(/\*/g, '.*');
|
||||
}).join('|'));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user