isaacs/minimatch — Issue #3: TypeError when using * in pattern
Author: devdoc
Created: 2012-01-31 20:37:29+00:00
State: open

I'm having trouble using *.txt pattern for matching. Same error seems to apply to any pattern containing * or ?. This is on a Windows system (node 0.69, minimatch 0.1.4, lru-cache 1.0.5):

```javascript
var mm = require("minimatch");
mm("something.txt", "*.txt");
```

This results in:

TypeError: Object /^(?!\.)(?=.)[^/]*?\.txt$/ has no method 'match'
at E:\workdir\node_modules\minimatch\minimatch.js:173:18
at Array.map (native)
at Minimatch.make (E:\jaketest\node_modules\minimatch\minimatch.js:170:13)
at new Minimatch (E:\jaketest\node_modules\minimatch\minimatch.js:108:8)
at minimatch (E:\jaketest\node_modules\minimatch\minimatch.js:74:10)
at repl:1:1
at REPLServer.eval (repl.js:80:21)
at repl.js:190:20
at REPLServer.eval (repl.js:87:5)
at Interface. (repl.js:182:12)