From 03c31be9b3f1c135e307351506e6848b5c90b3c2 Mon Sep 17 00:00:00 2001 From: Ismael OUEDRAOGO Date: Sat, 21 Aug 2021 12:18:22 +0100 Subject: [PATCH] fixed file extension regular expression to be more accurate --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;