{"action":"created","issue":{"url":"https://api.github.com/repos/jonschlinkert/micromatch/issues/59","repository_url":"https://api.github.com/repos/jonschlinkert/micromatch","labels_url":"https://api.github.com/repos/jonschlinkert/micromatch/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/jonschlinkert/micromatch/issues/59/comments","events_url":"https://api.github.com/repos/jonschlinkert/micromatch/issues/59/events","html_url":"https://github.com/jonschlinkert/micromatch/issues/59","id":145052219,"number":59,"title":"globstar","user":{"login":"MartinKolarik","id":6192491,"avatar_url":"https://avatars.githubusercontent.com/u/6192491?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinKolarik","html_url":"https://github.com/MartinKolarik","followers_url":"https://api.github.com/users/MartinKolarik/followers","following_url":"https://api.github.com/users/MartinKolarik/following{/other_user}","gists_url":"https://api.github.com/users/MartinKolarik/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinKolarik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinKolarik/subscriptions","organizations_url":"https://api.github.com/users/MartinKolarik/orgs","repos_url":"https://api.github.com/users/MartinKolarik/repos","events_url":"https://api.github.com/users/MartinKolarik/events{/privacy}","received_events_url":"https://api.github.com/users/MartinKolarik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-01T00:19:30Z","updated_at":"2016-04-22T10:36:45Z","closed_at":null,"body":"AFAIK, the double star should only match multiple directories if it' the only thing in a path part, e.g., `a/**/b`, but not `a/b**`.\r\n\r\nIn micromatch, it seems it can be followed by other characters:\r\n\r\n```js\r\nmm.isMatch('a/b/c', 'a/b**'); // => returns false\r\nmm.isMatch('a/c/b', 'a/**b'); // => returns true (maybe a bug?)\r\n```\r\n\r\nIs this intentional?"},"comment":{"url":"https://api.github.com/repos/jonschlinkert/micromatch/issues/comments/213372803","html_url":"https://github.com/jonschlinkert/micromatch/issues/59#issuecomment-213372803","issue_url":"https://api.github.com/repos/jonschlinkert/micromatch/issues/59","id":213372803,"user":{"login":"MartinKolarik","id":6192491,"avatar_url":"https://avatars.githubusercontent.com/u/6192491?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinKolarik","html_url":"https://github.com/MartinKolarik","followers_url":"https://api.github.com/users/MartinKolarik/followers","following_url":"https://api.github.com/users/MartinKolarik/following{/other_user}","gists_url":"https://api.github.com/users/MartinKolarik/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinKolarik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinKolarik/subscriptions","organizations_url":"https://api.github.com/users/MartinKolarik/orgs","repos_url":"https://api.github.com/users/MartinKolarik/repos","events_url":"https://api.github.com/users/MartinKolarik/events{/privacy}","received_events_url":"https://api.github.com/users/MartinKolarik/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T10:36:44Z","updated_at":"2016-04-22T10:36:44Z","body":">console.log(mm.isMatch('a/b/c/d', 'a/**b')) // => false\r\n\r\nIt does if you fix the pattern: `console.log(mm.isMatch('a/b/c/d', 'a/**d')); // => true`"}}