Skip to content

Commit

Permalink
Merge pull request #54 from zensh/master
Browse files Browse the repository at this point in the history
Fixed text file detecting
  • Loading branch information
lazd committed Jul 28, 2015
2 parents d51fd2c + e88f7e3 commit 05aac7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -56,11 +56,11 @@ module.exports = function(search, replacement, options) {
}

if (options && options.skipBinary) {
istextorbinary.isText('', file.contents, function(err, result) {
istextorbinary.isText(file.path, file.contents, function(err, result) {
if (err) {
return callback(err, file);
}

if (!result) {
callback(null, file);
} else {
Expand All @@ -69,7 +69,7 @@ module.exports = function(search, replacement, options) {
});

return;
}
}

doReplace();
}
Expand Down

0 comments on commit 05aac7b

Please sign in to comment.