{"action":"created","comment":{"url":"https://api.github.com/repos/styled-components/polished/pulls/comments/100701321","pull_request_review_id":21414985,"id":100701321,"diff_hunk":"@@ -0,0 +1,45 @@\n+// @flow\n+\n+/** */\n+type RgbColor = {\n+  red: number,\n+  green: number,\n+  blue: number,\n+  alpha?: number,\n+}\n+\n+const hexRegex = new RegExp('^#[a-fA-F0-9]{6}$')\n+const reducedHexRegex = new RegExp('^#[a-fA-F0-9]{3}$')\n+// eslint-disable-next-line no-useless-escape\n+const rgbaRegex = /^rgba\\((\\d+),(\\d+),(\\d+),([-+]?[0-9]*[.]?[0-9]+)\\)$/\n+// const rgbaRegex = new RegExp('^rgba\\((\\d+),(\\d+),(\\d+),([-+]?[0-9]*[.]?[0-9]+)\\)$')","path":"src/internalHelpers/_parseColorString.js","position":15,"original_position":15,"commit_id":"fcc8c07feed844a7a531d72ace896188f861e7c7","original_commit_id":"fcc8c07feed844a7a531d72ace896188f861e7c7","user":{"login":"nikgraf","id":223045,"avatar_url":"https://avatars.githubusercontent.com/u/223045?v=3","gravatar_id":"","url":"https://api.github.com/users/nikgraf","html_url":"https://github.com/nikgraf","followers_url":"https://api.github.com/users/nikgraf/followers","following_url":"https://api.github.com/users/nikgraf/following{/other_user}","gists_url":"https://api.github.com/users/nikgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/nikgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikgraf/subscriptions","organizations_url":"https://api.github.com/users/nikgraf/orgs","repos_url":"https://api.github.com/users/nikgraf/repos","events_url":"https://api.github.com/users/nikgraf/events{/privacy}","received_events_url":"https://api.github.com/users/nikgraf/received_events","type":"User","site_admin":false},"body":"Ahh, good catch!\r\nFirst I used `new RegExp` syntax, but there linting complained, but the escapes were not useless. They were needed. With `/<regex>/` syntax it's detected properly … let's use this and remove the eslint disable","created_at":"2017-02-12T19:17:00Z","updated_at":"2017-02-12T19:17:00Z","html_url":"https://github.com/styled-components/polished/pull/84#discussion_r100701321","pull_request_url":"https://api.github.com/repos/styled-components/polished/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/styled-components/polished/pulls/comments/100701321"},"html":{"href":"https://github.com/styled-components/polished/pull/84#discussion_r100701321"},"pull_request":{"href":"https://api.github.com/repos/styled-components/polished/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/styled-components/polished/pulls/84","id":105785526,"html_url":"https://github.com/styled-components/polished/pull/84","diff_url":"https://github.com/styled-components/polished/pull/84.diff","patch_url":"https://github.com/styled-components/polished/pull/84.patch","issue_url":"https://api.github.com/repos/styled-components/polished/issues/84","number":84,"state":"open","locked":false,"title":"Color: Darken & Lighten","user":{"login":"nikgraf","id":223045,"avatar_url":"https://avatars.githubusercontent.com/u/223045?v=3","gravatar_id":"","url":"https://api.github.com/users/nikgraf","html_url":"https://github.com/nikgraf","followers_url":"https://api.github.com/users/nikgraf/followers","following_url":"https://api.github.com/users/nikgraf/following{/other_user}","gists_url":"https://api.github.com/users/nikgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/nikgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikgraf/subscriptions","organizations_url":"https://api.github.com/users/nikgraf/orgs","repos_url":"https://api.github.com/users/nikgraf/repos","events_url":"https://api.github.com/users/nikgraf/events{/privacy}","received_events_url":"https://api.github.com/users/nikgraf/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-12T09:45:44Z","updated_at":"2017-02-12T19:17:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f45282dc899d8a95780784584bd3e10ec2d0f9fb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/styled-components/polished/pulls/84/commits","review_comments_url":"https://api.github.com/repos/styled-components/polished/pulls/84/comments","review_comment_url":"https://api.github.com/repos/styled-components/polished/pulls/comments{/number}","comments_url":"https://api.github.com/repos/styled-components/polished/issues/84/comments","statuses_url":"https://api.github.com/repos/styled-components/polished/statuses/fcc8c07feed844a7a531d72ace896188f861e7c7","head":{"label":"styled-components:darken","ref":"darken","sha":"fcc8c07feed844a7a531d72ace896188f861e7c7","user":{"login":"styled-components","id":20658825,"avatar_url":"https://avatars.githubusercontent.com/u/20658825?v=3","gravatar_id":"","url":"https://api.github.com/users/styled-components","html_url":"https://github.com/styled-components","followers_url":"https://api.github.com/users/styled-components/followers","following_url":"https://api.github.com/users/styled-components/following{/other_user}","gists_url":"https://api.github.com/users/styled-components/gists{/gist_id}","starred_url":"https://api.github.com/users/styled-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styled-components/subscriptions","organizations_url":"https://api.github.com/users/styled-components/orgs","repos_url":"https://api.github.com/users/styled-components/repos","events_url":"https://api.github.com/users/styled-components/events{/privacy}","received_events_url":"https://api.github.com/users/styled-components/received_events","type":"Organization","site_admin":false},"repo":{"id":72754695,"name":"polished","full_name":"styled-components/polished","owner":{"login":"styled-components","id":20658825,"avatar_url":"https://avatars.githubusercontent.com/u/20658825?v=3","gravatar_id":"","url":"https://api.github.com/users/styled-components","html_url":"https://github.com/styled-components","followers_url":"https://api.github.com/users/styled-components/followers","following_url":"https://api.github.com/users/styled-components/following{/other_user}","gists_url":"https://api.github.com/users/styled-components/gists{/gist_id}","starred_url":"https://api.github.com/users/styled-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styled-components/subscriptions","organizations_url":"https://api.github.com/users/styled-components/orgs","repos_url":"https://api.github.com/users/styled-components/repos","events_url":"https://api.github.com/users/styled-components/events{/privacy}","received_events_url":"https://api.github.com/users/styled-components/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/styled-components/polished","description":"A lightweight toolset for writing styles in JavaScript ✨","fork":false,"url":"https://api.github.com/repos/styled-components/polished","forks_url":"https://api.github.com/repos/styled-components/polished/forks","keys_url":"https://api.github.com/repos/styled-components/polished/keys{/key_id}","collaborators_url":"https://api.github.com/repos/styled-components/polished/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/styled-components/polished/teams","hooks_url":"https://api.github.com/repos/styled-components/polished/hooks","issue_events_url":"https://api.github.com/repos/styled-components/polished/issues/events{/number}","events_url":"https://api.github.com/repos/styled-components/polished/events","assignees_url":"https://api.github.com/repos/styled-components/polished/assignees{/user}","branches_url":"https://api.github.com/repos/styled-components/polished/branches{/branch}","tags_url":"https://api.github.com/repos/styled-components/polished/tags","blobs_url":"https://api.github.com/repos/styled-components/polished/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/styled-components/polished/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/styled-components/polished/git/refs{/sha}","trees_url":"https://api.github.com/repos/styled-components/polished/git/trees{/sha}","statuses_url":"https://api.github.com/repos/styled-components/polished/statuses/{sha}","languages_url":"https://api.github.com/repos/styled-components/polished/languages","stargazers_url":"https://api.github.com/repos/styled-components/polished/stargazers","contributors_url":"https://api.github.com/repos/styled-components/polished/contributors","subscribers_url":"https://api.github.com/repos/styled-components/polished/subscribers","subscription_url":"https://api.github.com/repos/styled-components/polished/subscription","commits_url":"https://api.github.com/repos/styled-components/polished/commits{/sha}","git_commits_url":"https://api.github.com/repos/styled-components/polished/git/commits{/sha}","comments_url":"https://api.github.com/repos/styled-components/polished/comments{/number}","issue_comment_url":"https://api.github.com/repos/styled-components/polished/issues/comments{/number}","contents_url":"https://api.github.com/repos/styled-components/polished/contents/{+path}","compare_url":"https://api.github.com/repos/styled-components/polished/compare/{base}...{head}","merges_url":"https://api.github.com/repos/styled-components/polished/merges","archive_url":"https://api.github.com/repos/styled-components/polished/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/styled-components/polished/downloads","issues_url":"https://api.github.com/repos/styled-components/polished/issues{/number}","pulls_url":"https://api.github.com/repos/styled-components/polished/pulls{/number}","milestones_url":"https://api.github.com/repos/styled-components/polished/milestones{/number}","notifications_url":"https://api.github.com/repos/styled-components/polished/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/styled-components/polished/labels{/name}","releases_url":"https://api.github.com/repos/styled-components/polished/releases{/id}","deployments_url":"https://api.github.com/repos/styled-components/polished/deployments","created_at":"2016-11-03T14:39:21Z","updated_at":"2017-02-10T09:40:10Z","pushed_at":"2017-02-12T18:54:23Z","git_url":"git://github.com/styled-components/polished.git","ssh_url":"git@github.com:styled-components/polished.git","clone_url":"https://github.com/styled-components/polished.git","svn_url":"https://github.com/styled-components/polished","homepage":"","size":1737,"stargazers_count":63,"watchers_count":63,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":10,"forks":6,"open_issues":10,"watchers":63,"default_branch":"master"}},"base":{"label":"styled-components:master","ref":"master","sha":"e28933d8d087828b14e0601e9ee3d350f7ec70a7","user":{"login":"styled-components","id":20658825,"avatar_url":"https://avatars.githubusercontent.com/u/20658825?v=3","gravatar_id":"","url":"https://api.github.com/users/styled-components","html_url":"https://github.com/styled-components","followers_url":"https://api.github.com/users/styled-components/followers","following_url":"https://api.github.com/users/styled-components/following{/other_user}","gists_url":"https://api.github.com/users/styled-components/gists{/gist_id}","starred_url":"https://api.github.com/users/styled-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styled-components/subscriptions","organizations_url":"https://api.github.com/users/styled-components/orgs","repos_url":"https://api.github.com/users/styled-components/repos","events_url":"https://api.github.com/users/styled-components/events{/privacy}","received_events_url":"https://api.github.com/users/styled-components/received_events","type":"Organization","site_admin":false},"repo":{"id":72754695,"name":"polished","full_name":"styled-components/polished","owner":{"login":"styled-components","id":20658825,"avatar_url":"https://avatars.githubusercontent.com/u/20658825?v=3","gravatar_id":"","url":"https://api.github.com/users/styled-components","html_url":"https://github.com/styled-components","followers_url":"https://api.github.com/users/styled-components/followers","following_url":"https://api.github.com/users/styled-components/following{/other_user}","gists_url":"https://api.github.com/users/styled-components/gists{/gist_id}","starred_url":"https://api.github.com/users/styled-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styled-components/subscriptions","organizations_url":"https://api.github.com/users/styled-components/orgs","repos_url":"https://api.github.com/users/styled-components/repos","events_url":"https://api.github.com/users/styled-components/events{/privacy}","received_events_url":"https://api.github.com/users/styled-components/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/styled-components/polished","description":"A lightweight toolset for writing styles in JavaScript ✨","fork":false,"url":"https://api.github.com/repos/styled-components/polished","forks_url":"https://api.github.com/repos/styled-components/polished/forks","keys_url":"https://api.github.com/repos/styled-components/polished/keys{/key_id}","collaborators_url":"https://api.github.com/repos/styled-components/polished/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/styled-components/polished/teams","hooks_url":"https://api.github.com/repos/styled-components/polished/hooks","issue_events_url":"https://api.github.com/repos/styled-components/polished/issues/events{/number}","events_url":"https://api.github.com/repos/styled-components/polished/events","assignees_url":"https://api.github.com/repos/styled-components/polished/assignees{/user}","branches_url":"https://api.github.com/repos/styled-components/polished/branches{/branch}","tags_url":"https://api.github.com/repos/styled-components/polished/tags","blobs_url":"https://api.github.com/repos/styled-components/polished/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/styled-components/polished/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/styled-components/polished/git/refs{/sha}","trees_url":"https://api.github.com/repos/styled-components/polished/git/trees{/sha}","statuses_url":"https://api.github.com/repos/styled-components/polished/statuses/{sha}","languages_url":"https://api.github.com/repos/styled-components/polished/languages","stargazers_url":"https://api.github.com/repos/styled-components/polished/stargazers","contributors_url":"https://api.github.com/repos/styled-components/polished/contributors","subscribers_url":"https://api.github.com/repos/styled-components/polished/subscribers","subscription_url":"https://api.github.com/repos/styled-components/polished/subscription","commits_url":"https://api.github.com/repos/styled-components/polished/commits{/sha}","git_commits_url":"https://api.github.com/repos/styled-components/polished/git/commits{/sha}","comments_url":"https://api.github.com/repos/styled-components/polished/comments{/number}","issue_comment_url":"https://api.github.com/repos/styled-components/polished/issues/comments{/number}","contents_url":"https://api.github.com/repos/styled-components/polished/contents/{+path}","compare_url":"https://api.github.com/repos/styled-components/polished/compare/{base}...{head}","merges_url":"https://api.github.com/repos/styled-components/polished/merges","archive_url":"https://api.github.com/repos/styled-components/polished/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/styled-components/polished/downloads","issues_url":"https://api.github.com/repos/styled-components/polished/issues{/number}","pulls_url":"https://api.github.com/repos/styled-components/polished/pulls{/number}","milestones_url":"https://api.github.com/repos/styled-components/polished/milestones{/number}","notifications_url":"https://api.github.com/repos/styled-components/polished/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/styled-components/polished/labels{/name}","releases_url":"https://api.github.com/repos/styled-components/polished/releases{/id}","deployments_url":"https://api.github.com/repos/styled-components/polished/deployments","created_at":"2016-11-03T14:39:21Z","updated_at":"2017-02-10T09:40:10Z","pushed_at":"2017-02-12T18:54:23Z","git_url":"git://github.com/styled-components/polished.git","ssh_url":"git@github.com:styled-components/polished.git","clone_url":"https://github.com/styled-components/polished.git","svn_url":"https://github.com/styled-components/polished","homepage":"","size":1737,"stargazers_count":63,"watchers_count":63,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":10,"forks":6,"open_issues":10,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/styled-components/polished/pulls/84"},"html":{"href":"https://github.com/styled-components/polished/pull/84"},"issue":{"href":"https://api.github.com/repos/styled-components/polished/issues/84"},"comments":{"href":"https://api.github.com/repos/styled-components/polished/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/styled-components/polished/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/styled-components/polished/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/styled-components/polished/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/styled-components/polished/statuses/fcc8c07feed844a7a531d72ace896188f861e7c7"}}}}
{"actor":{"display_login":"nikgraf"}}