Skip to content

Commit 2f34c99

Browse files
authored
chore: Fix incorrect filter documentation (#9)
1 parent 4817e65 commit 2f34c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Both async and sync take a filter function as the second argument, to ignore fil
5151
var emptyDir = require('empty-dir');
5252

5353
function filter(filepath) {
54-
return !/(Thumbs\.db|\.DS_Store)$/i.test(filepath);
54+
return /(Thumbs\.db|\.DS_Store)$/i.test(filepath);
5555
}
5656

5757
emptyDir('./', filter, function(err, isEmpty) {

0 commit comments

Comments
 (0)