{"action":"created","comment":{"url":"https://api.github.com/repos/hapijs/code/pulls/comments/61885471","id":61885471,"diff_hunk":"@@ -342,9 +342,22 @@ internals.addMethod(['instanceof', 'instanceOf'], internals.instanceof);\n \n internals.match = function (regex) {\n \n+    if (this._ref instanceof Array) {\n+\n+        return this.assert(internals.matchArray(this._ref, regex), 'match ' + regex);\n+    }\n     return this.assert(regex.exec(this._ref), 'match ' + regex);\n };\n \n+internals.matchArray = function (items, regex) {\n+\n+    return items.some((item) =>\n+\n+        regex.exec(item) !== null","path":"lib/index.js","position":15,"original_position":15,"commit_id":"bcf94b185708ef16e0d52d0d2da3ff535fc5d04a","original_commit_id":"bcf94b185708ef16e0d52d0d2da3ff535fc5d04a","user":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"body":"Missing semicolon.","created_at":"2016-05-03T14:01:14Z","updated_at":"2016-05-03T14:01:14Z","html_url":"https://github.com/hapijs/code/pull/69#discussion_r61885471","pull_request_url":"https://api.github.com/repos/hapijs/code/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/hapijs/code/pulls/comments/61885471"},"html":{"href":"https://github.com/hapijs/code/pull/69#discussion_r61885471"},"pull_request":{"href":"https://api.github.com/repos/hapijs/code/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/hapijs/code/pulls/69","id":68640680,"html_url":"https://github.com/hapijs/code/pull/69","diff_url":"https://github.com/hapijs/code/pull/69.diff","patch_url":"https://github.com/hapijs/code/pull/69.patch","issue_url":"https://api.github.com/repos/hapijs/code/issues/69","number":69,"state":"open","locked":false,"title":"id-67: ability to match on non-specific array item","user":{"login":"iw-ideinko","id":10431745,"avatar_url":"https://avatars.githubusercontent.com/u/10431745?v=3","gravatar_id":"","url":"https://api.github.com/users/iw-ideinko","html_url":"https://github.com/iw-ideinko","followers_url":"https://api.github.com/users/iw-ideinko/followers","following_url":"https://api.github.com/users/iw-ideinko/following{/other_user}","gists_url":"https://api.github.com/users/iw-ideinko/gists{/gist_id}","starred_url":"https://api.github.com/users/iw-ideinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iw-ideinko/subscriptions","organizations_url":"https://api.github.com/users/iw-ideinko/orgs","repos_url":"https://api.github.com/users/iw-ideinko/repos","events_url":"https://api.github.com/users/iw-ideinko/events{/privacy}","received_events_url":"https://api.github.com/users/iw-ideinko/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-02T23:57:21Z","updated_at":"2016-05-03T14:01:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"942c2eaf52e9776e745695feeb236545ec102c5c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hapijs/code/pulls/69/commits","review_comments_url":"https://api.github.com/repos/hapijs/code/pulls/69/comments","review_comment_url":"https://api.github.com/repos/hapijs/code/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hapijs/code/issues/69/comments","statuses_url":"https://api.github.com/repos/hapijs/code/statuses/bcf94b185708ef16e0d52d0d2da3ff535fc5d04a","head":{"label":"iw-ideinko:id-67-ability-match-non-specific-item","ref":"id-67-ability-match-non-specific-item","sha":"bcf94b185708ef16e0d52d0d2da3ff535fc5d04a","user":{"login":"iw-ideinko","id":10431745,"avatar_url":"https://avatars.githubusercontent.com/u/10431745?v=3","gravatar_id":"","url":"https://api.github.com/users/iw-ideinko","html_url":"https://github.com/iw-ideinko","followers_url":"https://api.github.com/users/iw-ideinko/followers","following_url":"https://api.github.com/users/iw-ideinko/following{/other_user}","gists_url":"https://api.github.com/users/iw-ideinko/gists{/gist_id}","starred_url":"https://api.github.com/users/iw-ideinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iw-ideinko/subscriptions","organizations_url":"https://api.github.com/users/iw-ideinko/orgs","repos_url":"https://api.github.com/users/iw-ideinko/repos","events_url":"https://api.github.com/users/iw-ideinko/events{/privacy}","received_events_url":"https://api.github.com/users/iw-ideinko/received_events","type":"User","site_admin":false},"repo":{"id":57928231,"name":"code","full_name":"iw-ideinko/code","owner":{"login":"iw-ideinko","id":10431745,"avatar_url":"https://avatars.githubusercontent.com/u/10431745?v=3","gravatar_id":"","url":"https://api.github.com/users/iw-ideinko","html_url":"https://github.com/iw-ideinko","followers_url":"https://api.github.com/users/iw-ideinko/followers","following_url":"https://api.github.com/users/iw-ideinko/following{/other_user}","gists_url":"https://api.github.com/users/iw-ideinko/gists{/gist_id}","starred_url":"https://api.github.com/users/iw-ideinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iw-ideinko/subscriptions","organizations_url":"https://api.github.com/users/iw-ideinko/orgs","repos_url":"https://api.github.com/users/iw-ideinko/repos","events_url":"https://api.github.com/users/iw-ideinko/events{/privacy}","received_events_url":"https://api.github.com/users/iw-ideinko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iw-ideinko/code","description":"Assertion library","fork":true,"url":"https://api.github.com/repos/iw-ideinko/code","forks_url":"https://api.github.com/repos/iw-ideinko/code/forks","keys_url":"https://api.github.com/repos/iw-ideinko/code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iw-ideinko/code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iw-ideinko/code/teams","hooks_url":"https://api.github.com/repos/iw-ideinko/code/hooks","issue_events_url":"https://api.github.com/repos/iw-ideinko/code/issues/events{/number}","events_url":"https://api.github.com/repos/iw-ideinko/code/events","assignees_url":"https://api.github.com/repos/iw-ideinko/code/assignees{/user}","branches_url":"https://api.github.com/repos/iw-ideinko/code/branches{/branch}","tags_url":"https://api.github.com/repos/iw-ideinko/code/tags","blobs_url":"https://api.github.com/repos/iw-ideinko/code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iw-ideinko/code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iw-ideinko/code/git/refs{/sha}","trees_url":"https://api.github.com/repos/iw-ideinko/code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iw-ideinko/code/statuses/{sha}","languages_url":"https://api.github.com/repos/iw-ideinko/code/languages","stargazers_url":"https://api.github.com/repos/iw-ideinko/code/stargazers","contributors_url":"https://api.github.com/repos/iw-ideinko/code/contributors","subscribers_url":"https://api.github.com/repos/iw-ideinko/code/subscribers","subscription_url":"https://api.github.com/repos/iw-ideinko/code/subscription","commits_url":"https://api.github.com/repos/iw-ideinko/code/commits{/sha}","git_commits_url":"https://api.github.com/repos/iw-ideinko/code/git/commits{/sha}","comments_url":"https://api.github.com/repos/iw-ideinko/code/comments{/number}","issue_comment_url":"https://api.github.com/repos/iw-ideinko/code/issues/comments{/number}","contents_url":"https://api.github.com/repos/iw-ideinko/code/contents/{+path}","compare_url":"https://api.github.com/repos/iw-ideinko/code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iw-ideinko/code/merges","archive_url":"https://api.github.com/repos/iw-ideinko/code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iw-ideinko/code/downloads","issues_url":"https://api.github.com/repos/iw-ideinko/code/issues{/number}","pulls_url":"https://api.github.com/repos/iw-ideinko/code/pulls{/number}","milestones_url":"https://api.github.com/repos/iw-ideinko/code/milestones{/number}","notifications_url":"https://api.github.com/repos/iw-ideinko/code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iw-ideinko/code/labels{/name}","releases_url":"https://api.github.com/repos/iw-ideinko/code/releases{/id}","deployments_url":"https://api.github.com/repos/iw-ideinko/code/deployments","created_at":"2016-05-02T23:43:56Z","updated_at":"2016-05-02T23:43:57Z","pushed_at":"2016-05-02T23:56:59Z","git_url":"git://github.com/iw-ideinko/code.git","ssh_url":"git@github.com:iw-ideinko/code.git","clone_url":"https://github.com/iw-ideinko/code.git","svn_url":"https://github.com/iw-ideinko/code","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hapijs:master","ref":"master","sha":"86ebd4639dfc09bfd46f726f8e57b8e9c165d2c7","user":{"login":"hapijs","id":3774533,"avatar_url":"https://avatars.githubusercontent.com/u/3774533?v=3","gravatar_id":"","url":"https://api.github.com/users/hapijs","html_url":"https://github.com/hapijs","followers_url":"https://api.github.com/users/hapijs/followers","following_url":"https://api.github.com/users/hapijs/following{/other_user}","gists_url":"https://api.github.com/users/hapijs/gists{/gist_id}","starred_url":"https://api.github.com/users/hapijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hapijs/subscriptions","organizations_url":"https://api.github.com/users/hapijs/orgs","repos_url":"https://api.github.com/users/hapijs/repos","events_url":"https://api.github.com/users/hapijs/events{/privacy}","received_events_url":"https://api.github.com/users/hapijs/received_events","type":"Organization","site_admin":false},"repo":{"id":25145904,"name":"code","full_name":"hapijs/code","owner":{"login":"hapijs","id":3774533,"avatar_url":"https://avatars.githubusercontent.com/u/3774533?v=3","gravatar_id":"","url":"https://api.github.com/users/hapijs","html_url":"https://github.com/hapijs","followers_url":"https://api.github.com/users/hapijs/followers","following_url":"https://api.github.com/users/hapijs/following{/other_user}","gists_url":"https://api.github.com/users/hapijs/gists{/gist_id}","starred_url":"https://api.github.com/users/hapijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hapijs/subscriptions","organizations_url":"https://api.github.com/users/hapijs/orgs","repos_url":"https://api.github.com/users/hapijs/repos","events_url":"https://api.github.com/users/hapijs/events{/privacy}","received_events_url":"https://api.github.com/users/hapijs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hapijs/code","description":"Assertion library","fork":false,"url":"https://api.github.com/repos/hapijs/code","forks_url":"https://api.github.com/repos/hapijs/code/forks","keys_url":"https://api.github.com/repos/hapijs/code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hapijs/code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hapijs/code/teams","hooks_url":"https://api.github.com/repos/hapijs/code/hooks","issue_events_url":"https://api.github.com/repos/hapijs/code/issues/events{/number}","events_url":"https://api.github.com/repos/hapijs/code/events","assignees_url":"https://api.github.com/repos/hapijs/code/assignees{/user}","branches_url":"https://api.github.com/repos/hapijs/code/branches{/branch}","tags_url":"https://api.github.com/repos/hapijs/code/tags","blobs_url":"https://api.github.com/repos/hapijs/code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hapijs/code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hapijs/code/git/refs{/sha}","trees_url":"https://api.github.com/repos/hapijs/code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hapijs/code/statuses/{sha}","languages_url":"https://api.github.com/repos/hapijs/code/languages","stargazers_url":"https://api.github.com/repos/hapijs/code/stargazers","contributors_url":"https://api.github.com/repos/hapijs/code/contributors","subscribers_url":"https://api.github.com/repos/hapijs/code/subscribers","subscription_url":"https://api.github.com/repos/hapijs/code/subscription","commits_url":"https://api.github.com/repos/hapijs/code/commits{/sha}","git_commits_url":"https://api.github.com/repos/hapijs/code/git/commits{/sha}","comments_url":"https://api.github.com/repos/hapijs/code/comments{/number}","issue_comment_url":"https://api.github.com/repos/hapijs/code/issues/comments{/number}","contents_url":"https://api.github.com/repos/hapijs/code/contents/{+path}","compare_url":"https://api.github.com/repos/hapijs/code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hapijs/code/merges","archive_url":"https://api.github.com/repos/hapijs/code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hapijs/code/downloads","issues_url":"https://api.github.com/repos/hapijs/code/issues{/number}","pulls_url":"https://api.github.com/repos/hapijs/code/pulls{/number}","milestones_url":"https://api.github.com/repos/hapijs/code/milestones{/number}","notifications_url":"https://api.github.com/repos/hapijs/code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hapijs/code/labels{/name}","releases_url":"https://api.github.com/repos/hapijs/code/releases{/id}","deployments_url":"https://api.github.com/repos/hapijs/code/deployments","created_at":"2014-10-13T06:26:32Z","updated_at":"2016-04-21T12:37:23Z","pushed_at":"2016-05-02T23:57:22Z","git_url":"git://github.com/hapijs/code.git","ssh_url":"git@github.com:hapijs/code.git","clone_url":"https://github.com/hapijs/code.git","svn_url":"https://github.com/hapijs/code","homepage":null,"size":128,"stargazers_count":100,"watchers_count":100,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":3,"forks":22,"open_issues":3,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hapijs/code/pulls/69"},"html":{"href":"https://github.com/hapijs/code/pull/69"},"issue":{"href":"https://api.github.com/repos/hapijs/code/issues/69"},"comments":{"href":"https://api.github.com/repos/hapijs/code/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/hapijs/code/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/hapijs/code/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hapijs/code/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/hapijs/code/statuses/bcf94b185708ef16e0d52d0d2da3ff535fc5d04a"}}}}