{"action":"created","issue":{"url":"https://api.github.com/repos/isaacs/minimatch/issues/65","labels_url":"https://api.github.com/repos/isaacs/minimatch/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/isaacs/minimatch/issues/65/comments","events_url":"https://api.github.com/repos/isaacs/minimatch/issues/65/events","html_url":"https://github.com/isaacs/minimatch/issues/65","id":78563111,"number":65,"title":"negative matches problem for .min.js like paths","user":{"login":"gera2ld","id":3139113,"avatar_url":"https://avatars.githubusercontent.com/u/3139113?v=3","gravatar_id":"","url":"https://api.github.com/users/gera2ld","html_url":"https://github.com/gera2ld","followers_url":"https://api.github.com/users/gera2ld/followers","following_url":"https://api.github.com/users/gera2ld/following{/other_user}","gists_url":"https://api.github.com/users/gera2ld/gists{/gist_id}","starred_url":"https://api.github.com/users/gera2ld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gera2ld/subscriptions","organizations_url":"https://api.github.com/users/gera2ld/orgs","repos_url":"https://api.github.com/users/gera2ld/repos","events_url":"https://api.github.com/users/gera2ld/events{/privacy}","received_events_url":"https://api.github.com/users/gera2ld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-20T15:11:17Z","updated_at":"2015-07-06T09:25:03Z","closed_at":null,"body":"I am trying to filter files by extnames:\r\n``` javascript\r\nvar minimatch = require('minimatch');\r\nconsole.log(minimatch('foo/bar.min.js', '*.!(js|css)', {matchBase: true}));\t// true\r\nconsole.log(minimatch('foo/bar.min.js', '!*.+(js|css)', {matchBase: true}));\t// false\r\n```\r\nAre the results expected?"},"comment":{"url":"https://api.github.com/repos/isaacs/minimatch/issues/comments/118784665","html_url":"https://github.com/isaacs/minimatch/issues/65#issuecomment-118784665","issue_url":"https://api.github.com/repos/isaacs/minimatch/issues/65","id":118784665,"user":{"login":"mik01aj","id":3027415,"avatar_url":"https://avatars.githubusercontent.com/u/3027415?v=3","gravatar_id":"","url":"https://api.github.com/users/mik01aj","html_url":"https://github.com/mik01aj","followers_url":"https://api.github.com/users/mik01aj/followers","following_url":"https://api.github.com/users/mik01aj/following{/other_user}","gists_url":"https://api.github.com/users/mik01aj/gists{/gist_id}","starred_url":"https://api.github.com/users/mik01aj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mik01aj/subscriptions","organizations_url":"https://api.github.com/users/mik01aj/orgs","repos_url":"https://api.github.com/users/mik01aj/repos","events_url":"https://api.github.com/users/mik01aj/events{/privacy}","received_events_url":"https://api.github.com/users/mik01aj/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T09:25:03Z","updated_at":"2015-07-06T09:25:03Z","body":"@isaacs, thanks for your explanation :)\r\n\r\n> Every failing test is this class of error, so that's the bona fide bug.\r\n\r\nImho not. This doesn't explain the difference between these 2 examples:\r\n\r\n    > m('a-integration-test.js', '*-!(integration-)test.js')\r\n    true\r\n    > m('a-integration-test.js', '*-!(integration)-test.js')\r\n    false\r\n\r\nIt seems to me that minus has some special meaning here.\r\n\r\nAnyway, I totally agree with deprecating the whole negation \"feature\" in minimatch. It causes more problems than benefit. "}}