{"issue":{"pull_request":{"diff_url":"https://github.com/hij1nx/EventEmitter2/pull/33.diff","html_url":"https://github.com/hij1nx/EventEmitter2/pull/33","patch_url":"https://github.com/hij1nx/EventEmitter2/pull/33.patch"},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/7de6bfadc611153be54a3a563c155555?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7de6bfadc611153be54a3a563c155555","url":"https://api.github.com/users/Marsup","login":"Marsup","id":796194},"milestone":null,"updated_at":"2011-11-05T06:56:59Z","labels":[],"assignee":null,"closed_at":"2011-11-05T06:54:11Z","comments":5,"url":"https://api.github.com/repos/hij1nx/EventEmitter2/issues/33","body":"Hello hij1nx,\r\n\r\nFollowing a need on Hook.io, I have decided to play a bit with EventEmitter2 and try to implement what's suggested in [this issue](https://github.com/hookio/hook.io/issues/100).\r\n\r\nAs I'm very lazy I'll just paste the same comment as my commit to explain what it does :)\r\n\r\n```\r\nAllow the use of '**' patterns to make matches, this will be better\r\ndemonstrated by examples:\r\n\r\n- '**' will match everything\r\n- '**.a' will match anything ending with a\r\n- 'a.**' will match anything beginning with a\r\n- '**.a.**' will match anything containing a\r\n- '**.a.**.b.**' will matchin anything with a and b inside and\r\n  separated at least by one word\r\n- '**.*' is equivalent to '*.*'\r\n- '*.**' is equivalent to '**' but needs at least 2 words\r\n- '**.**' anywhere in the filter is forbidden and will not be added\r\n```\r\n\r\nI have tried to respect your pre-ES5 effort coding style, and I hope the code is understandable.\r\nI haven't really understood what the tests of all.js should do so I've put most of my testings in addListener.js, I hope I haven't missed something important here.\r\nDocumentation is not updated as I was unsure you'd integrate it or not.\r\n\r\nI'm waiting for your feedback.","html_url":"https://github.com/hij1nx/EventEmitter2/issues/33","title":"Implement multi-level patterns ('**')","number":33,"id":1856677,"created_at":"2011-10-09T15:39:13Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/8af5b97a9869fc1387f683afbb875fef?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8af5b97a9869fc1387f683afbb875fef","url":"https://api.github.com/users/hij1nx","login":"hij1nx","id":136109},"updated_at":"2011-11-05T06:56:59Z","url":"https://api.github.com/repos/hij1nx/EventEmitter2/issues/comments/2639248","body":"I was contemplating reducing the surface of the api, but it would break too many projects, i may still create an experimental branch.","id":2639248,"created_at":"2011-11-05T06:56:59Z"}}