Skip to content

Commit

Permalink
Fix globs to files without extension in remark(1)
Browse files Browse the repository at this point in the history
Related GH-115.
Closes GH-121.
  • Loading branch information
wooorm committed Jan 3, 2016
1 parent 15b246a commit 20e253f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cli/finder.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ function find(globs, callback) {
return true;
}

return given.indexOf(filePath) !== -1 && stat(filePath).isFile();
return globs.some(function (glob) {
return match(filePath, glob) && stat(filePath).isFile();
});
}, filePaths, function (err, files) {
callback(err, failed.concat(files).map(function (file) {
file.namespace('remark:cli').given = true;
Expand Down

0 comments on commit 20e253f

Please sign in to comment.