{"action":"created","issue":{"url":"https://api.github.com/repos/isaacs/minimatch/issues/68","labels_url":"https://api.github.com/repos/isaacs/minimatch/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/isaacs/minimatch/issues/68/comments","events_url":"https://api.github.com/repos/isaacs/minimatch/issues/68/events","html_url":"https://github.com/isaacs/minimatch/issues/68","id":96672603,"number":68,"title":"2.0.8 -> 2.0.9 regression for weird nested *(!(pattern))","user":{"login":"collingreen","id":5257160,"avatar_url":"https://avatars.githubusercontent.com/u/5257160?v=3","gravatar_id":"","url":"https://api.github.com/users/collingreen","html_url":"https://github.com/collingreen","followers_url":"https://api.github.com/users/collingreen/followers","following_url":"https://api.github.com/users/collingreen/following{/other_user}","gists_url":"https://api.github.com/users/collingreen/gists{/gist_id}","starred_url":"https://api.github.com/users/collingreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collingreen/subscriptions","organizations_url":"https://api.github.com/users/collingreen/orgs","repos_url":"https://api.github.com/users/collingreen/repos","events_url":"https://api.github.com/users/collingreen/events{/privacy}","received_events_url":"https://api.github.com/users/collingreen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-22T21:45:54Z","updated_at":"2015-07-23T01:32:07Z","closed_at":null,"body":"The upgrade to 2.0.9 from 2.0.8 (which happened automatically for us on install with gulp -> vinyl-fs -> glob-stream -> minimatch) introduces a failure generating valid regexes for our pattern `src/**/*(*.json|!(*.js))`. Granted, that pattern is a bit wonky, but it was working before and now it is not.\r\n\r\nI have a PR with the test added -- it passes on 2.0.8 but showcases the error in 2.0.9. I didn't pull against your master since it doesn't include a solution, just a failing test. \r\n\r\nhttps://github.com/weebygames/minimatch/pull/1\r\n\r\n@isaacs - let me know if you want me to PR this against your master"},"comment":{"url":"https://api.github.com/repos/isaacs/minimatch/issues/comments/123926029","html_url":"https://github.com/isaacs/minimatch/issues/68#issuecomment-123926029","issue_url":"https://api.github.com/repos/isaacs/minimatch/issues/68","id":123926029,"user":{"login":"isaacs","id":9287,"avatar_url":"https://avatars.githubusercontent.com/u/9287?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacs","html_url":"https://github.com/isaacs","followers_url":"https://api.github.com/users/isaacs/followers","following_url":"https://api.github.com/users/isaacs/following{/other_user}","gists_url":"https://api.github.com/users/isaacs/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacs/subscriptions","organizations_url":"https://api.github.com/users/isaacs/orgs","repos_url":"https://api.github.com/users/isaacs/repos","events_url":"https://api.github.com/users/isaacs/events{/privacy}","received_events_url":"https://api.github.com/users/isaacs/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T01:32:06Z","updated_at":"2015-07-23T01:32:06Z","body":"Oh, no, I think this is actually a bug in Bash.  `+(!(*.js))` matches a file `foo.js`, so something is definitely weird there.\r\n\r\nI'm going to land the patch, but also continue to investigate this.  Expect a release shortly."}}