{"action":"closed","number":329,"pull_request":{"url":"https://api.github.com/repos/okonet/react-dropzone/pulls/329","id":101516182,"html_url":"https://github.com/okonet/react-dropzone/pull/329","diff_url":"https://github.com/okonet/react-dropzone/pull/329.diff","patch_url":"https://github.com/okonet/react-dropzone/pull/329.patch","issue_url":"https://api.github.com/repos/okonet/react-dropzone/issues/329","number":329,"state":"closed","locked":false,"title":"Allow string array's for accept argument","user":{"login":"smeijer","id":1196524,"avatar_url":"https://avatars.githubusercontent.com/u/1196524?v=3","gravatar_id":"","url":"https://api.github.com/users/smeijer","html_url":"https://github.com/smeijer","followers_url":"https://api.github.com/users/smeijer/followers","following_url":"https://api.github.com/users/smeijer/following{/other_user}","gists_url":"https://api.github.com/users/smeijer/gists{/gist_id}","starred_url":"https://api.github.com/users/smeijer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smeijer/subscriptions","organizations_url":"https://api.github.com/users/smeijer/orgs","repos_url":"https://api.github.com/users/smeijer/repos","events_url":"https://api.github.com/users/smeijer/events{/privacy}","received_events_url":"https://api.github.com/users/smeijer/received_events","type":"User","site_admin":false},"body":"As [`attr-accept`][1] can handle array's as well; and this library simply passes the argument trough; I don't see any reason to leave this one out of the `PropTypes`. \r\n\r\n```js\r\naccept({\r\n    name: 'my file.json',\r\n    type: 'application/json'\r\n}, 'application/json,video/*') // => true\r\n\r\naccept({\r\n    name: 'my file.json',\r\n    type: 'application/json'\r\n}, ['application/json', 'video/*']) // => true\r\n```\r\n\r\n[1]: https://github.com/okonet/attr-accept#usage","created_at":"2017-01-13T20:58:54Z","updated_at":"2017-01-20T13:38:25Z","closed_at":"2017-01-20T13:38:25Z","merged_at":null,"merge_commit_sha":"735ccda1b4d71f5e996ed04277fb3f2e881c32d2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/okonet/react-dropzone/pulls/329/commits","review_comments_url":"https://api.github.com/repos/okonet/react-dropzone/pulls/329/comments","review_comment_url":"https://api.github.com/repos/okonet/react-dropzone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okonet/react-dropzone/issues/329/comments","statuses_url":"https://api.github.com/repos/okonet/react-dropzone/statuses/aea40a9b3a11e71b6f9d94f5bc4a20b329b7ea39","head":{"label":"smeijer:patch-1","ref":"patch-1","sha":"aea40a9b3a11e71b6f9d94f5bc4a20b329b7ea39","user":{"login":"smeijer","id":1196524,"avatar_url":"https://avatars.githubusercontent.com/u/1196524?v=3","gravatar_id":"","url":"https://api.github.com/users/smeijer","html_url":"https://github.com/smeijer","followers_url":"https://api.github.com/users/smeijer/followers","following_url":"https://api.github.com/users/smeijer/following{/other_user}","gists_url":"https://api.github.com/users/smeijer/gists{/gist_id}","starred_url":"https://api.github.com/users/smeijer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smeijer/subscriptions","organizations_url":"https://api.github.com/users/smeijer/orgs","repos_url":"https://api.github.com/users/smeijer/repos","events_url":"https://api.github.com/users/smeijer/events{/privacy}","received_events_url":"https://api.github.com/users/smeijer/received_events","type":"User","site_admin":false},"repo":{"id":78885785,"name":"react-dropzone","full_name":"smeijer/react-dropzone","owner":{"login":"smeijer","id":1196524,"avatar_url":"https://avatars.githubusercontent.com/u/1196524?v=3","gravatar_id":"","url":"https://api.github.com/users/smeijer","html_url":"https://github.com/smeijer","followers_url":"https://api.github.com/users/smeijer/followers","following_url":"https://api.github.com/users/smeijer/following{/other_user}","gists_url":"https://api.github.com/users/smeijer/gists{/gist_id}","starred_url":"https://api.github.com/users/smeijer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smeijer/subscriptions","organizations_url":"https://api.github.com/users/smeijer/orgs","repos_url":"https://api.github.com/users/smeijer/repos","events_url":"https://api.github.com/users/smeijer/events{/privacy}","received_events_url":"https://api.github.com/users/smeijer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smeijer/react-dropzone","description":"Simple HTML5 drag-drop zone with React.js.","fork":true,"url":"https://api.github.com/repos/smeijer/react-dropzone","forks_url":"https://api.github.com/repos/smeijer/react-dropzone/forks","keys_url":"https://api.github.com/repos/smeijer/react-dropzone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smeijer/react-dropzone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smeijer/react-dropzone/teams","hooks_url":"https://api.github.com/repos/smeijer/react-dropzone/hooks","issue_events_url":"https://api.github.com/repos/smeijer/react-dropzone/issues/events{/number}","events_url":"https://api.github.com/repos/smeijer/react-dropzone/events","assignees_url":"https://api.github.com/repos/smeijer/react-dropzone/assignees{/user}","branches_url":"https://api.github.com/repos/smeijer/react-dropzone/branches{/branch}","tags_url":"https://api.github.com/repos/smeijer/react-dropzone/tags","blobs_url":"https://api.github.com/repos/smeijer/react-dropzone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smeijer/react-dropzone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smeijer/react-dropzone/git/refs{/sha}","trees_url":"https://api.github.com/repos/smeijer/react-dropzone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smeijer/react-dropzone/statuses/{sha}","languages_url":"https://api.github.com/repos/smeijer/react-dropzone/languages","stargazers_url":"https://api.github.com/repos/smeijer/react-dropzone/stargazers","contributors_url":"https://api.github.com/repos/smeijer/react-dropzone/contributors","subscribers_url":"https://api.github.com/repos/smeijer/react-dropzone/subscribers","subscription_url":"https://api.github.com/repos/smeijer/react-dropzone/subscription","commits_url":"https://api.github.com/repos/smeijer/react-dropzone/commits{/sha}","git_commits_url":"https://api.github.com/repos/smeijer/react-dropzone/git/commits{/sha}","comments_url":"https://api.github.com/repos/smeijer/react-dropzone/comments{/number}","issue_comment_url":"https://api.github.com/repos/smeijer/react-dropzone/issues/comments{/number}","contents_url":"https://api.github.com/repos/smeijer/react-dropzone/contents/{+path}","compare_url":"https://api.github.com/repos/smeijer/react-dropzone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smeijer/react-dropzone/merges","archive_url":"https://api.github.com/repos/smeijer/react-dropzone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smeijer/react-dropzone/downloads","issues_url":"https://api.github.com/repos/smeijer/react-dropzone/issues{/number}","pulls_url":"https://api.github.com/repos/smeijer/react-dropzone/pulls{/number}","milestones_url":"https://api.github.com/repos/smeijer/react-dropzone/milestones{/number}","notifications_url":"https://api.github.com/repos/smeijer/react-dropzone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smeijer/react-dropzone/labels{/name}","releases_url":"https://api.github.com/repos/smeijer/react-dropzone/releases{/id}","deployments_url":"https://api.github.com/repos/smeijer/react-dropzone/deployments","created_at":"2017-01-13T20:54:12Z","updated_at":"2017-01-13T20:54:15Z","pushed_at":"2017-01-20T12:11:19Z","git_url":"git://github.com/smeijer/react-dropzone.git","ssh_url":"git@github.com:smeijer/react-dropzone.git","clone_url":"https://github.com/smeijer/react-dropzone.git","svn_url":"https://github.com/smeijer/react-dropzone","homepage":"http://okonet.ru/react-dropzone/","size":890,"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":"okonet:master","ref":"master","sha":"86fe2c5fbf2dfdcf55469b18a127efa4182ad587","user":{"login":"okonet","id":11071,"avatar_url":"https://avatars.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"repo":{"id":24530655,"name":"react-dropzone","full_name":"okonet/react-dropzone","owner":{"login":"okonet","id":11071,"avatar_url":"https://avatars.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/okonet/react-dropzone","description":"Simple HTML5 drag-drop zone with React.js.","fork":false,"url":"https://api.github.com/repos/okonet/react-dropzone","forks_url":"https://api.github.com/repos/okonet/react-dropzone/forks","keys_url":"https://api.github.com/repos/okonet/react-dropzone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okonet/react-dropzone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okonet/react-dropzone/teams","hooks_url":"https://api.github.com/repos/okonet/react-dropzone/hooks","issue_events_url":"https://api.github.com/repos/okonet/react-dropzone/issues/events{/number}","events_url":"https://api.github.com/repos/okonet/react-dropzone/events","assignees_url":"https://api.github.com/repos/okonet/react-dropzone/assignees{/user}","branches_url":"https://api.github.com/repos/okonet/react-dropzone/branches{/branch}","tags_url":"https://api.github.com/repos/okonet/react-dropzone/tags","blobs_url":"https://api.github.com/repos/okonet/react-dropzone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okonet/react-dropzone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okonet/react-dropzone/git/refs{/sha}","trees_url":"https://api.github.com/repos/okonet/react-dropzone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okonet/react-dropzone/statuses/{sha}","languages_url":"https://api.github.com/repos/okonet/react-dropzone/languages","stargazers_url":"https://api.github.com/repos/okonet/react-dropzone/stargazers","contributors_url":"https://api.github.com/repos/okonet/react-dropzone/contributors","subscribers_url":"https://api.github.com/repos/okonet/react-dropzone/subscribers","subscription_url":"https://api.github.com/repos/okonet/react-dropzone/subscription","commits_url":"https://api.github.com/repos/okonet/react-dropzone/commits{/sha}","git_commits_url":"https://api.github.com/repos/okonet/react-dropzone/git/commits{/sha}","comments_url":"https://api.github.com/repos/okonet/react-dropzone/comments{/number}","issue_comment_url":"https://api.github.com/repos/okonet/react-dropzone/issues/comments{/number}","contents_url":"https://api.github.com/repos/okonet/react-dropzone/contents/{+path}","compare_url":"https://api.github.com/repos/okonet/react-dropzone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okonet/react-dropzone/merges","archive_url":"https://api.github.com/repos/okonet/react-dropzone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okonet/react-dropzone/downloads","issues_url":"https://api.github.com/repos/okonet/react-dropzone/issues{/number}","pulls_url":"https://api.github.com/repos/okonet/react-dropzone/pulls{/number}","milestones_url":"https://api.github.com/repos/okonet/react-dropzone/milestones{/number}","notifications_url":"https://api.github.com/repos/okonet/react-dropzone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okonet/react-dropzone/labels{/name}","releases_url":"https://api.github.com/repos/okonet/react-dropzone/releases{/id}","deployments_url":"https://api.github.com/repos/okonet/react-dropzone/deployments","created_at":"2014-09-27T11:57:09Z","updated_at":"2017-01-20T12:48:20Z","pushed_at":"2017-01-20T12:11:20Z","git_url":"git://github.com/okonet/react-dropzone.git","ssh_url":"git@github.com:okonet/react-dropzone.git","clone_url":"https://github.com/okonet/react-dropzone.git","svn_url":"https://github.com/okonet/react-dropzone","homepage":"http://okonet.ru/react-dropzone/","size":890,"stargazers_count":2172,"watchers_count":2172,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":264,"mirror_url":null,"open_issues_count":39,"forks":264,"open_issues":39,"watchers":2172,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okonet/react-dropzone/pulls/329"},"html":{"href":"https://github.com/okonet/react-dropzone/pull/329"},"issue":{"href":"https://api.github.com/repos/okonet/react-dropzone/issues/329"},"comments":{"href":"https://api.github.com/repos/okonet/react-dropzone/issues/329/comments"},"review_comments":{"href":"https://api.github.com/repos/okonet/react-dropzone/pulls/329/comments"},"review_comment":{"href":"https://api.github.com/repos/okonet/react-dropzone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okonet/react-dropzone/pulls/329/commits"},"statuses":{"href":"https://api.github.com/repos/okonet/react-dropzone/statuses/aea40a9b3a11e71b6f9d94f5bc4a20b329b7ea39"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":5,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":13,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"okonet"}}