From 288ed3bba621a508fbf4ee4a52f8901600502223 Mon Sep 17 00:00:00 2001 From: s100 Date: Wed, 20 Apr 2022 18:08:46 +0100 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 160ac85..74cdfcf 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Both async and sync take a filter function as the second argument, to ignore fil var emptyDir = require('empty-dir'); function filter(filepath) { - return !/(Thumbs\.db|\.DS_Store)$/i.test(filepath); + return /(Thumbs\.db|\.DS_Store)$/i.test(filepath); } emptyDir('./', filter, function(err, isEmpty) {