Permalink
Browse files

Merge pull request #63 from heycalmdown/patch-1

Support '--extensions' on Windows
  • Loading branch information...
2 parents 4e953a8 + 862c1ca commit 860a647e5260328e9e1c7f8e328df314030a92e9 @iangreenleaf iangreenleaf committed Jun 22, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/supervisor.js
View
6 lib/supervisor.js
@@ -197,8 +197,8 @@ function crash () {
}, 50);
}
-function crashWin (event) {
- if( event === 'change' )
+function crashWin (event, filename) {
+ if( event === 'change' && (!filename || filename.match(fileExtensionPattern) )
crash();
}
@@ -220,8 +220,6 @@ var findAllWatchFiles = function(path, callback) {
fs.stat(path, function(err, stats){
if (err) {
util.error('Error retrieving stats for file: ' + path);
- } else if (isWindows) {
- callback(path);
} else {
if (stats.isDirectory()) {
fs.readdir(path, function(err, fileNames) {

0 comments on commit 860a647

Please sign in to comment.