diff --git a/README.md b/README.md index 99310a4..8cbc06b 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ dir.readFilesStream(__dirname, // match only filenames with a .txt extension and that don't start with a `.ยด dir.readFiles(__dirname, { - match: /.txt$/, + match: /\.txt$/, exclude: /^\./ }, function(err, content, next) { if (err) throw err;