{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/code/issues/67","repository_url":"https://api.github.com/repos/hapijs/code","labels_url":"https://api.github.com/repos/hapijs/code/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/code/issues/67/comments","events_url":"https://api.github.com/repos/hapijs/code/issues/67/events","html_url":"https://github.com/hapijs/code/issues/67","id":149196501,"number":67,"title":"ability to match on non-specific array item","user":{"login":"danielb2","id":26678,"avatar_url":"https://avatars.githubusercontent.com/u/26678?v=3","gravatar_id":"","url":"https://api.github.com/users/danielb2","html_url":"https://github.com/danielb2","followers_url":"https://api.github.com/users/danielb2/followers","following_url":"https://api.github.com/users/danielb2/following{/other_user}","gists_url":"https://api.github.com/users/danielb2/gists{/gist_id}","starred_url":"https://api.github.com/users/danielb2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielb2/subscriptions","organizations_url":"https://api.github.com/users/danielb2/orgs","repos_url":"https://api.github.com/users/danielb2/repos","events_url":"https://api.github.com/users/danielb2/events{/privacy}","received_events_url":"https://api.github.com/users/danielb2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hapijs/code/labels/documentation","name":"documentation","color":"009800"},{"url":"https://api.github.com/repos/hapijs/code/labels/enhancement","name":"enhancement","color":"207de5"},{"url":"https://api.github.com/repos/hapijs/code/labels/help%20wanted","name":"help wanted","color":"d4c5f9"},{"url":"https://api.github.com/repos/hapijs/code/labels/test","name":"test","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-04-18T16:08:09Z","updated_at":"2016-08-29T19:18:10Z","closed_at":null,"body":"On non-ordered arrays (arrays not always coming back in specific order), it would be nice to be able to do a match on an item you know to be in there somewhere.\r\n\r\nExample:\r\n\r\n``` javascript\r\nexpect(res.headers['set-cookie']).to.include.match(/session/);\r\n```"},"comment":{"url":"https://api.github.com/repos/hapijs/code/issues/comments/243226110","html_url":"https://github.com/hapijs/code/issues/67#issuecomment-243226110","issue_url":"https://api.github.com/repos/hapijs/code/issues/67","id":243226110,"user":{"login":"blacksun1","id":1436675,"avatar_url":"https://avatars.githubusercontent.com/u/1436675?v=3","gravatar_id":"","url":"https://api.github.com/users/blacksun1","html_url":"https://github.com/blacksun1","followers_url":"https://api.github.com/users/blacksun1/followers","following_url":"https://api.github.com/users/blacksun1/following{/other_user}","gists_url":"https://api.github.com/users/blacksun1/gists{/gist_id}","starred_url":"https://api.github.com/users/blacksun1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacksun1/subscriptions","organizations_url":"https://api.github.com/users/blacksun1/orgs","repos_url":"https://api.github.com/users/blacksun1/repos","events_url":"https://api.github.com/users/blacksun1/events{/privacy}","received_events_url":"https://api.github.com/users/blacksun1/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T19:18:10Z","updated_at":"2016-08-29T19:18:10Z","body":"Would I be right in thinking that these would be valid expectations?\r\n\r\n```js\r\nCode.expect(['hello', 'hi']).to.match(/^hi/);\r\nCode.expect(['hello', 'hi']).to.match(/^hi$/);\r\nCode.expect(['hello', 'hi']).to.match(/^hello$/);\r\nCode.expect(['hello', 'hi']).to.not.match(/^Hello$/);\r\nCode.expect(['hello', 'hi']).to.match(/^Hello$/i);\r\nCode.expect(['hello', 'hi']).to.match(/ell/);\r\nCode.expect(['hello', 'hi']).to.match(/h/);\r\nCode.expect(['hello', 'hi']).to.not.match(new RegEx(['hello', 'hi'].toString()));\r\n```\r\n\r\nAnything missing from this list that you can think of?"}}
{"actor":{"display_login":"blacksun1"}}