Filter-rule pattern ".*" matches hidden directories

# this will exclude hidden files:
- .*

Is that how it is supposed to work?
I was NOT expecting it to exclude hidden directories because says “A * matches anything but not a /.”

# this will include hidden directories and exclude hidden files:
+ .*/**
- .*


The full stop is the period at the end of the sentence so it matches anything except /

Oh. Sorry for the dumb question.

The rule
matches the path
because “git/” is not a “/”

That is right! And there are no such things as dumb questions, only docs which could be improved!

1 Like