{"action":"created","comment":{"url":"https://api.github.com/repos/npm/newww/pulls/comments/38586197","id":38586197,"diff_hunk":"@@ -52,7 +55,10 @@ var isFeatureEnabled = module.exports = function isFeatureEnabled(feature, reque\n   }\n \n   if (Array.isArray(value) && request && request.auth && request.auth.credentials) {\n-    return value.indexOf(request.auth.credentials.name) > -1;\n+    var name = request.auth.credentials.name;\n+    return value.some(function(potentialUser) {\n+      return potentialUser === request.auth.credentials.name || potentialUser.test && potentialUser.test(name);\n+    });","path":"lib/feature-flags.js","position":18,"original_position":18,"commit_id":"6d6248d55d4e27d6c60f0d355055c45ccbba120f","original_commit_id":"beac34dadc490428f8d3aad34747409808e6d3c0","user":{"login":"rockbot","id":954269,"avatar_url":"https://avatars.githubusercontent.com/u/954269?v=3","gravatar_id":"","url":"https://api.github.com/users/rockbot","html_url":"https://github.com/rockbot","followers_url":"https://api.github.com/users/rockbot/followers","following_url":"https://api.github.com/users/rockbot/following{/other_user}","gists_url":"https://api.github.com/users/rockbot/gists{/gist_id}","starred_url":"https://api.github.com/users/rockbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockbot/subscriptions","organizations_url":"https://api.github.com/users/rockbot/orgs","repos_url":"https://api.github.com/users/rockbot/repos","events_url":"https://api.github.com/users/rockbot/events{/privacy}","received_events_url":"https://api.github.com/users/rockbot/received_events","type":"User","site_admin":false},"body":"this is magical. that is all.","created_at":"2015-09-02T21:22:07Z","updated_at":"2015-09-02T21:22:07Z","html_url":"https://github.com/npm/newww/pull/1260#discussion_r38586197","pull_request_url":"https://api.github.com/repos/npm/newww/pulls/1260","_links":{"self":{"href":"https://api.github.com/repos/npm/newww/pulls/comments/38586197"},"html":{"href":"https://github.com/npm/newww/pull/1260#discussion_r38586197"},"pull_request":{"href":"https://api.github.com/repos/npm/newww/pulls/1260"}}},"pull_request":{"url":"https://api.github.com/repos/npm/newww/pulls/1260","id":44042963,"html_url":"https://github.com/npm/newww/pull/1260","diff_url":"https://github.com/npm/newww/pull/1260.diff","patch_url":"https://github.com/npm/newww/pull/1260.patch","issue_url":"https://api.github.com/repos/npm/newww/issues/1260","number":1260,"state":"open","locked":false,"title":"Add regex: feature flag matches","user":{"login":"aredridel","id":2876,"avatar_url":"https://avatars.githubusercontent.com/u/2876?v=3","gravatar_id":"","url":"https://api.github.com/users/aredridel","html_url":"https://github.com/aredridel","followers_url":"https://api.github.com/users/aredridel/followers","following_url":"https://api.github.com/users/aredridel/following{/other_user}","gists_url":"https://api.github.com/users/aredridel/gists{/gist_id}","starred_url":"https://api.github.com/users/aredridel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aredridel/subscriptions","organizations_url":"https://api.github.com/users/aredridel/orgs","repos_url":"https://api.github.com/users/aredridel/repos","events_url":"https://api.github.com/users/aredridel/events{/privacy}","received_events_url":"https://api.github.com/users/aredridel/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-09-02T21:10:34Z","updated_at":"2015-09-02T21:22:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff951c20685dffbec94a7ea5971aec2b123c5893","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/npm/newww/pulls/1260/commits","review_comments_url":"https://api.github.com/repos/npm/newww/pulls/1260/comments","review_comment_url":"https://api.github.com/repos/npm/newww/pulls/comments{/number}","comments_url":"https://api.github.com/repos/npm/newww/issues/1260/comments","statuses_url":"https://api.github.com/repos/npm/newww/statuses/6d6248d55d4e27d6c60f0d355055c45ccbba120f","head":{"label":"aredridel:regex-feature-flags","ref":"regex-feature-flags","sha":"6d6248d55d4e27d6c60f0d355055c45ccbba120f","user":{"login":"aredridel","id":2876,"avatar_url":"https://avatars.githubusercontent.com/u/2876?v=3","gravatar_id":"","url":"https://api.github.com/users/aredridel","html_url":"https://github.com/aredridel","followers_url":"https://api.github.com/users/aredridel/followers","following_url":"https://api.github.com/users/aredridel/following{/other_user}","gists_url":"https://api.github.com/users/aredridel/gists{/gist_id}","starred_url":"https://api.github.com/users/aredridel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aredridel/subscriptions","organizations_url":"https://api.github.com/users/aredridel/orgs","repos_url":"https://api.github.com/users/aredridel/repos","events_url":"https://api.github.com/users/aredridel/events{/privacy}","received_events_url":"https://api.github.com/users/aredridel/received_events","type":"User","site_admin":false},"repo":{"id":40489173,"name":"newww","full_name":"aredridel/newww","owner":{"login":"aredridel","id":2876,"avatar_url":"https://avatars.githubusercontent.com/u/2876?v=3","gravatar_id":"","url":"https://api.github.com/users/aredridel","html_url":"https://github.com/aredridel","followers_url":"https://api.github.com/users/aredridel/followers","following_url":"https://api.github.com/users/aredridel/following{/other_user}","gists_url":"https://api.github.com/users/aredridel/gists{/gist_id}","starred_url":"https://api.github.com/users/aredridel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aredridel/subscriptions","organizations_url":"https://api.github.com/users/aredridel/orgs","repos_url":"https://api.github.com/users/aredridel/repos","events_url":"https://api.github.com/users/aredridel/events{/privacy}","received_events_url":"https://api.github.com/users/aredridel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aredridel/newww","description":"The npm website","fork":true,"url":"https://api.github.com/repos/aredridel/newww","forks_url":"https://api.github.com/repos/aredridel/newww/forks","keys_url":"https://api.github.com/repos/aredridel/newww/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aredridel/newww/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aredridel/newww/teams","hooks_url":"https://api.github.com/repos/aredridel/newww/hooks","issue_events_url":"https://api.github.com/repos/aredridel/newww/issues/events{/number}","events_url":"https://api.github.com/repos/aredridel/newww/events","assignees_url":"https://api.github.com/repos/aredridel/newww/assignees{/user}","branches_url":"https://api.github.com/repos/aredridel/newww/branches{/branch}","tags_url":"https://api.github.com/repos/aredridel/newww/tags","blobs_url":"https://api.github.com/repos/aredridel/newww/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aredridel/newww/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aredridel/newww/git/refs{/sha}","trees_url":"https://api.github.com/repos/aredridel/newww/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aredridel/newww/statuses/{sha}","languages_url":"https://api.github.com/repos/aredridel/newww/languages","stargazers_url":"https://api.github.com/repos/aredridel/newww/stargazers","contributors_url":"https://api.github.com/repos/aredridel/newww/contributors","subscribers_url":"https://api.github.com/repos/aredridel/newww/subscribers","subscription_url":"https://api.github.com/repos/aredridel/newww/subscription","commits_url":"https://api.github.com/repos/aredridel/newww/commits{/sha}","git_commits_url":"https://api.github.com/repos/aredridel/newww/git/commits{/sha}","comments_url":"https://api.github.com/repos/aredridel/newww/comments{/number}","issue_comment_url":"https://api.github.com/repos/aredridel/newww/issues/comments{/number}","contents_url":"https://api.github.com/repos/aredridel/newww/contents/{+path}","compare_url":"https://api.github.com/repos/aredridel/newww/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aredridel/newww/merges","archive_url":"https://api.github.com/repos/aredridel/newww/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aredridel/newww/downloads","issues_url":"https://api.github.com/repos/aredridel/newww/issues{/number}","pulls_url":"https://api.github.com/repos/aredridel/newww/pulls{/number}","milestones_url":"https://api.github.com/repos/aredridel/newww/milestones{/number}","notifications_url":"https://api.github.com/repos/aredridel/newww/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aredridel/newww/labels{/name}","releases_url":"https://api.github.com/repos/aredridel/newww/releases{/id}","created_at":"2015-08-10T15:08:03Z","updated_at":"2015-08-10T15:08:04Z","pushed_at":"2015-09-02T21:22:04Z","git_url":"git://github.com/aredridel/newww.git","ssh_url":"git@github.com:aredridel/newww.git","clone_url":"https://github.com/aredridel/newww.git","svn_url":"https://github.com/aredridel/newww","homepage":"http://npmjs.com","size":9152,"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":"npm:master","ref":"master","sha":"56eda8793d753b936f5cb7eff289874c606b0fdc","user":{"login":"npm","id":6078720,"avatar_url":"https://avatars.githubusercontent.com/u/6078720?v=3","gravatar_id":"","url":"https://api.github.com/users/npm","html_url":"https://github.com/npm","followers_url":"https://api.github.com/users/npm/followers","following_url":"https://api.github.com/users/npm/following{/other_user}","gists_url":"https://api.github.com/users/npm/gists{/gist_id}","starred_url":"https://api.github.com/users/npm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npm/subscriptions","organizations_url":"https://api.github.com/users/npm/orgs","repos_url":"https://api.github.com/users/npm/repos","events_url":"https://api.github.com/users/npm/events{/privacy}","received_events_url":"https://api.github.com/users/npm/received_events","type":"Organization","site_admin":false},"repo":{"id":19872239,"name":"newww","full_name":"npm/newww","owner":{"login":"npm","id":6078720,"avatar_url":"https://avatars.githubusercontent.com/u/6078720?v=3","gravatar_id":"","url":"https://api.github.com/users/npm","html_url":"https://github.com/npm","followers_url":"https://api.github.com/users/npm/followers","following_url":"https://api.github.com/users/npm/following{/other_user}","gists_url":"https://api.github.com/users/npm/gists{/gist_id}","starred_url":"https://api.github.com/users/npm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npm/subscriptions","organizations_url":"https://api.github.com/users/npm/orgs","repos_url":"https://api.github.com/users/npm/repos","events_url":"https://api.github.com/users/npm/events{/privacy}","received_events_url":"https://api.github.com/users/npm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npm/newww","description":"The npm website","fork":false,"url":"https://api.github.com/repos/npm/newww","forks_url":"https://api.github.com/repos/npm/newww/forks","keys_url":"https://api.github.com/repos/npm/newww/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npm/newww/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npm/newww/teams","hooks_url":"https://api.github.com/repos/npm/newww/hooks","issue_events_url":"https://api.github.com/repos/npm/newww/issues/events{/number}","events_url":"https://api.github.com/repos/npm/newww/events","assignees_url":"https://api.github.com/repos/npm/newww/assignees{/user}","branches_url":"https://api.github.com/repos/npm/newww/branches{/branch}","tags_url":"https://api.github.com/repos/npm/newww/tags","blobs_url":"https://api.github.com/repos/npm/newww/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npm/newww/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npm/newww/git/refs{/sha}","trees_url":"https://api.github.com/repos/npm/newww/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npm/newww/statuses/{sha}","languages_url":"https://api.github.com/repos/npm/newww/languages","stargazers_url":"https://api.github.com/repos/npm/newww/stargazers","contributors_url":"https://api.github.com/repos/npm/newww/contributors","subscribers_url":"https://api.github.com/repos/npm/newww/subscribers","subscription_url":"https://api.github.com/repos/npm/newww/subscription","commits_url":"https://api.github.com/repos/npm/newww/commits{/sha}","git_commits_url":"https://api.github.com/repos/npm/newww/git/commits{/sha}","comments_url":"https://api.github.com/repos/npm/newww/comments{/number}","issue_comment_url":"https://api.github.com/repos/npm/newww/issues/comments{/number}","contents_url":"https://api.github.com/repos/npm/newww/contents/{+path}","compare_url":"https://api.github.com/repos/npm/newww/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npm/newww/merges","archive_url":"https://api.github.com/repos/npm/newww/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npm/newww/downloads","issues_url":"https://api.github.com/repos/npm/newww/issues{/number}","pulls_url":"https://api.github.com/repos/npm/newww/pulls{/number}","milestones_url":"https://api.github.com/repos/npm/newww/milestones{/number}","notifications_url":"https://api.github.com/repos/npm/newww/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npm/newww/labels{/name}","releases_url":"https://api.github.com/repos/npm/newww/releases{/id}","created_at":"2014-05-16T22:12:47Z","updated_at":"2015-09-02T12:57:58Z","pushed_at":"2015-09-02T21:22:04Z","git_url":"git://github.com/npm/newww.git","ssh_url":"git@github.com:npm/newww.git","clone_url":"https://github.com/npm/newww.git","svn_url":"https://github.com/npm/newww","homepage":"http://npmjs.com","size":16791,"stargazers_count":409,"watchers_count":409,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"open_issues_count":238,"forks":125,"open_issues":238,"watchers":409,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npm/newww/pulls/1260"},"html":{"href":"https://github.com/npm/newww/pull/1260"},"issue":{"href":"https://api.github.com/repos/npm/newww/issues/1260"},"comments":{"href":"https://api.github.com/repos/npm/newww/issues/1260/comments"},"review_comments":{"href":"https://api.github.com/repos/npm/newww/pulls/1260/comments"},"review_comment":{"href":"https://api.github.com/repos/npm/newww/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/npm/newww/pulls/1260/commits"},"statuses":{"href":"https://api.github.com/repos/npm/newww/statuses/6d6248d55d4e27d6c60f0d355055c45ccbba120f"}}}}