isaacs/minimatch — Issue #5: pattern `**/.svn/**` doesn't work as expected when using `minimatch()`
Author: millermedeiros
Created: 2012-02-17 01:29:11+00:00
State: open

if I do `find . -path "**/.svn/**"` it will log all the files inside all `.svn` folders, no matter how *deep* they are, shouldn't `minimatch()` also match these paths?

```
js/lib/.svn/tmp
js/lib/.svn/tmp/prop-base
js/lib/.svn/tmp/props
js/lib/.svn/tmp/text-base
js/widgets/templates/.svn/all-wcprops
js/widgets/templates/.svn/entries
js/widgets/templates/.svn/prop-base
js/widgets/templates/.svn/props
```

the weird thing is that if I use `minimatch.makeRe()` it generates the proper `RegExp`... simple test:

```js
var minimatch = require('minimatch');
minimatch('js/lib/.svn/tmp', '**/.svn/**'); // false
minimatch.makeRe('**/.svn/**').test('js/lib/.svn/tmp'); // true
```

am I missing something? I ended up using the `makeRe()` since it does work as I expect.