{"action":"created","comment":{"url":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/comments/204483951","pull_request_review_id":139569284,"id":204483951,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDQ4Mzk1MQ==","diff_hunk":"@@ -66,9 +68,20 @@ export default function Highlighter ({\n         if (chunk.highlight) {\n           highlightCount++\n \n+          if(textColors){\n+            textColors = Object.keys(textColors).reduce((colors, x) => {","path":"src/Highlighter.js","position":21,"original_position":21,"commit_id":"9a34f91f9aeaa4517b66cd64093990506beccc44","original_commit_id":"9a34f91f9aeaa4517b66cd64093990506beccc44","user":{"login":"z3roshot","id":771603,"node_id":"MDQ6VXNlcjc3MTYwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/771603?v=4","gravatar_id":"","url":"https://api.github.com/users/z3roshot","html_url":"https://github.com/z3roshot","followers_url":"https://api.github.com/users/z3roshot/followers","following_url":"https://api.github.com/users/z3roshot/following{/other_user}","gists_url":"https://api.github.com/users/z3roshot/gists{/gist_id}","starred_url":"https://api.github.com/users/z3roshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z3roshot/subscriptions","organizations_url":"https://api.github.com/users/z3roshot/orgs","repos_url":"https://api.github.com/users/z3roshot/repos","events_url":"https://api.github.com/users/z3roshot/events{/privacy}","received_events_url":"https://api.github.com/users/z3roshot/received_events","type":"User","site_admin":false},"body":"That makes a lot of sense.","created_at":"2018-07-23T17:09:25Z","updated_at":"2018-07-23T17:09:25Z","html_url":"https://github.com/bvaughn/react-highlight-words/pull/61#discussion_r204483951","pull_request_url":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/61","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/comments/204483951"},"html":{"href":"https://github.com/bvaughn/react-highlight-words/pull/61#discussion_r204483951"},"pull_request":{"href":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/61"}},"in_reply_to_id":204482878},"pull_request":{"url":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/61","id":203195288,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMTk1Mjg4","html_url":"https://github.com/bvaughn/react-highlight-words/pull/61","diff_url":"https://github.com/bvaughn/react-highlight-words/pull/61.diff","patch_url":"https://github.com/bvaughn/react-highlight-words/pull/61.patch","issue_url":"https://api.github.com/repos/bvaughn/react-highlight-words/issues/61","number":61,"state":"open","locked":false,"title":"Multiple colors","user":{"login":"z3roshot","id":771603,"node_id":"MDQ6VXNlcjc3MTYwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/771603?v=4","gravatar_id":"","url":"https://api.github.com/users/z3roshot","html_url":"https://github.com/z3roshot","followers_url":"https://api.github.com/users/z3roshot/followers","following_url":"https://api.github.com/users/z3roshot/following{/other_user}","gists_url":"https://api.github.com/users/z3roshot/gists{/gist_id}","starred_url":"https://api.github.com/users/z3roshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z3roshot/subscriptions","organizations_url":"https://api.github.com/users/z3roshot/orgs","repos_url":"https://api.github.com/users/z3roshot/repos","events_url":"https://api.github.com/users/z3roshot/events{/privacy}","received_events_url":"https://api.github.com/users/z3roshot/received_events","type":"User","site_admin":false},"body":"This change introduces a new `prop` called `textColors`. This new prop is a mapping of words to css classes and is used to apply these classes to the words.\r\n\r\nFor example: \r\n`{ the: 'green', of: 'blue', hello: 'orange' }`\r\n\r\nIn the example, instances of `the` will have the class `green` applied to them instead of `highlightClassName`.\r\n\r\nNote: I had trouble running the tests due to an `npm install` problem, probably with `phantomjs`. I'm happy to take some advice on that to make sure that the tests still pass, because I was unable to do that.","created_at":"2018-07-23T11:55:33Z","updated_at":"2018-07-23T17:09:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a44020231653a81055a6bb74983eb72487457e0f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/61/commits","review_comments_url":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/61/comments","review_comment_url":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bvaughn/react-highlight-words/issues/61/comments","statuses_url":"https://api.github.com/repos/bvaughn/react-highlight-words/statuses/9a34f91f9aeaa4517b66cd64093990506beccc44","head":{"label":"z3roshot:MultipleColors","ref":"MultipleColors","sha":"9a34f91f9aeaa4517b66cd64093990506beccc44","user":{"login":"z3roshot","id":771603,"node_id":"MDQ6VXNlcjc3MTYwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/771603?v=4","gravatar_id":"","url":"https://api.github.com/users/z3roshot","html_url":"https://github.com/z3roshot","followers_url":"https://api.github.com/users/z3roshot/followers","following_url":"https://api.github.com/users/z3roshot/following{/other_user}","gists_url":"https://api.github.com/users/z3roshot/gists{/gist_id}","starred_url":"https://api.github.com/users/z3roshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z3roshot/subscriptions","organizations_url":"https://api.github.com/users/z3roshot/orgs","repos_url":"https://api.github.com/users/z3roshot/repos","events_url":"https://api.github.com/users/z3roshot/events{/privacy}","received_events_url":"https://api.github.com/users/z3roshot/received_events","type":"User","site_admin":false},"repo":{"id":141737316,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE3MzczMTY=","name":"react-highlight-words","full_name":"z3roshot/react-highlight-words","owner":{"login":"z3roshot","id":771603,"node_id":"MDQ6VXNlcjc3MTYwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/771603?v=4","gravatar_id":"","url":"https://api.github.com/users/z3roshot","html_url":"https://github.com/z3roshot","followers_url":"https://api.github.com/users/z3roshot/followers","following_url":"https://api.github.com/users/z3roshot/following{/other_user}","gists_url":"https://api.github.com/users/z3roshot/gists{/gist_id}","starred_url":"https://api.github.com/users/z3roshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z3roshot/subscriptions","organizations_url":"https://api.github.com/users/z3roshot/orgs","repos_url":"https://api.github.com/users/z3roshot/repos","events_url":"https://api.github.com/users/z3roshot/events{/privacy}","received_events_url":"https://api.github.com/users/z3roshot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/z3roshot/react-highlight-words","description":"React component to highlight words within a larger body of text","fork":true,"url":"https://api.github.com/repos/z3roshot/react-highlight-words","forks_url":"https://api.github.com/repos/z3roshot/react-highlight-words/forks","keys_url":"https://api.github.com/repos/z3roshot/react-highlight-words/keys{/key_id}","collaborators_url":"https://api.github.com/repos/z3roshot/react-highlight-words/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/z3roshot/react-highlight-words/teams","hooks_url":"https://api.github.com/repos/z3roshot/react-highlight-words/hooks","issue_events_url":"https://api.github.com/repos/z3roshot/react-highlight-words/issues/events{/number}","events_url":"https://api.github.com/repos/z3roshot/react-highlight-words/events","assignees_url":"https://api.github.com/repos/z3roshot/react-highlight-words/assignees{/user}","branches_url":"https://api.github.com/repos/z3roshot/react-highlight-words/branches{/branch}","tags_url":"https://api.github.com/repos/z3roshot/react-highlight-words/tags","blobs_url":"https://api.github.com/repos/z3roshot/react-highlight-words/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/z3roshot/react-highlight-words/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/z3roshot/react-highlight-words/git/refs{/sha}","trees_url":"https://api.github.com/repos/z3roshot/react-highlight-words/git/trees{/sha}","statuses_url":"https://api.github.com/repos/z3roshot/react-highlight-words/statuses/{sha}","languages_url":"https://api.github.com/repos/z3roshot/react-highlight-words/languages","stargazers_url":"https://api.github.com/repos/z3roshot/react-highlight-words/stargazers","contributors_url":"https://api.github.com/repos/z3roshot/react-highlight-words/contributors","subscribers_url":"https://api.github.com/repos/z3roshot/react-highlight-words/subscribers","subscription_url":"https://api.github.com/repos/z3roshot/react-highlight-words/subscription","commits_url":"https://api.github.com/repos/z3roshot/react-highlight-words/commits{/sha}","git_commits_url":"https://api.github.com/repos/z3roshot/react-highlight-words/git/commits{/sha}","comments_url":"https://api.github.com/repos/z3roshot/react-highlight-words/comments{/number}","issue_comment_url":"https://api.github.com/repos/z3roshot/react-highlight-words/issues/comments{/number}","contents_url":"https://api.github.com/repos/z3roshot/react-highlight-words/contents/{+path}","compare_url":"https://api.github.com/repos/z3roshot/react-highlight-words/compare/{base}...{head}","merges_url":"https://api.github.com/repos/z3roshot/react-highlight-words/merges","archive_url":"https://api.github.com/repos/z3roshot/react-highlight-words/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/z3roshot/react-highlight-words/downloads","issues_url":"https://api.github.com/repos/z3roshot/react-highlight-words/issues{/number}","pulls_url":"https://api.github.com/repos/z3roshot/react-highlight-words/pulls{/number}","milestones_url":"https://api.github.com/repos/z3roshot/react-highlight-words/milestones{/number}","notifications_url":"https://api.github.com/repos/z3roshot/react-highlight-words/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/z3roshot/react-highlight-words/labels{/name}","releases_url":"https://api.github.com/repos/z3roshot/react-highlight-words/releases{/id}","deployments_url":"https://api.github.com/repos/z3roshot/react-highlight-words/deployments","created_at":"2018-07-20T16:59:22Z","updated_at":"2018-07-20T16:59:25Z","pushed_at":"2018-07-23T12:42:12Z","git_url":"git://github.com/z3roshot/react-highlight-words.git","ssh_url":"git@github.com:z3roshot/react-highlight-words.git","clone_url":"https://github.com/z3roshot/react-highlight-words.git","svn_url":"https://github.com/z3roshot/react-highlight-words","homepage":"https://bvaughn.github.io/react-highlight-words/","size":2348,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bvaughn:master","ref":"master","sha":"9e3bb7a97cd1543a7a0948f192c5694e245d97ba","user":{"login":"bvaughn","id":29597,"node_id":"MDQ6VXNlcjI5NTk3","avatar_url":"https://avatars0.githubusercontent.com/u/29597?v=4","gravatar_id":"","url":"https://api.github.com/users/bvaughn","html_url":"https://github.com/bvaughn","followers_url":"https://api.github.com/users/bvaughn/followers","following_url":"https://api.github.com/users/bvaughn/following{/other_user}","gists_url":"https://api.github.com/users/bvaughn/gists{/gist_id}","starred_url":"https://api.github.com/users/bvaughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvaughn/subscriptions","organizations_url":"https://api.github.com/users/bvaughn/orgs","repos_url":"https://api.github.com/users/bvaughn/repos","events_url":"https://api.github.com/users/bvaughn/events{/privacy}","received_events_url":"https://api.github.com/users/bvaughn/received_events","type":"User","site_admin":false},"repo":{"id":48126484,"node_id":"MDEwOlJlcG9zaXRvcnk0ODEyNjQ4NA==","name":"react-highlight-words","full_name":"bvaughn/react-highlight-words","owner":{"login":"bvaughn","id":29597,"node_id":"MDQ6VXNlcjI5NTk3","avatar_url":"https://avatars0.githubusercontent.com/u/29597?v=4","gravatar_id":"","url":"https://api.github.com/users/bvaughn","html_url":"https://github.com/bvaughn","followers_url":"https://api.github.com/users/bvaughn/followers","following_url":"https://api.github.com/users/bvaughn/following{/other_user}","gists_url":"https://api.github.com/users/bvaughn/gists{/gist_id}","starred_url":"https://api.github.com/users/bvaughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvaughn/subscriptions","organizations_url":"https://api.github.com/users/bvaughn/orgs","repos_url":"https://api.github.com/users/bvaughn/repos","events_url":"https://api.github.com/users/bvaughn/events{/privacy}","received_events_url":"https://api.github.com/users/bvaughn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bvaughn/react-highlight-words","description":"React component to highlight words within a larger body of text","fork":false,"url":"https://api.github.com/repos/bvaughn/react-highlight-words","forks_url":"https://api.github.com/repos/bvaughn/react-highlight-words/forks","keys_url":"https://api.github.com/repos/bvaughn/react-highlight-words/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bvaughn/react-highlight-words/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bvaughn/react-highlight-words/teams","hooks_url":"https://api.github.com/repos/bvaughn/react-highlight-words/hooks","issue_events_url":"https://api.github.com/repos/bvaughn/react-highlight-words/issues/events{/number}","events_url":"https://api.github.com/repos/bvaughn/react-highlight-words/events","assignees_url":"https://api.github.com/repos/bvaughn/react-highlight-words/assignees{/user}","branches_url":"https://api.github.com/repos/bvaughn/react-highlight-words/branches{/branch}","tags_url":"https://api.github.com/repos/bvaughn/react-highlight-words/tags","blobs_url":"https://api.github.com/repos/bvaughn/react-highlight-words/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bvaughn/react-highlight-words/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bvaughn/react-highlight-words/git/refs{/sha}","trees_url":"https://api.github.com/repos/bvaughn/react-highlight-words/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bvaughn/react-highlight-words/statuses/{sha}","languages_url":"https://api.github.com/repos/bvaughn/react-highlight-words/languages","stargazers_url":"https://api.github.com/repos/bvaughn/react-highlight-words/stargazers","contributors_url":"https://api.github.com/repos/bvaughn/react-highlight-words/contributors","subscribers_url":"https://api.github.com/repos/bvaughn/react-highlight-words/subscribers","subscription_url":"https://api.github.com/repos/bvaughn/react-highlight-words/subscription","commits_url":"https://api.github.com/repos/bvaughn/react-highlight-words/commits{/sha}","git_commits_url":"https://api.github.com/repos/bvaughn/react-highlight-words/git/commits{/sha}","comments_url":"https://api.github.com/repos/bvaughn/react-highlight-words/comments{/number}","issue_comment_url":"https://api.github.com/repos/bvaughn/react-highlight-words/issues/comments{/number}","contents_url":"https://api.github.com/repos/bvaughn/react-highlight-words/contents/{+path}","compare_url":"https://api.github.com/repos/bvaughn/react-highlight-words/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bvaughn/react-highlight-words/merges","archive_url":"https://api.github.com/repos/bvaughn/react-highlight-words/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bvaughn/react-highlight-words/downloads","issues_url":"https://api.github.com/repos/bvaughn/react-highlight-words/issues{/number}","pulls_url":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls{/number}","milestones_url":"https://api.github.com/repos/bvaughn/react-highlight-words/milestones{/number}","notifications_url":"https://api.github.com/repos/bvaughn/react-highlight-words/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bvaughn/react-highlight-words/labels{/name}","releases_url":"https://api.github.com/repos/bvaughn/react-highlight-words/releases{/id}","deployments_url":"https://api.github.com/repos/bvaughn/react-highlight-words/deployments","created_at":"2015-12-16T18:02:09Z","updated_at":"2018-07-22T06:29:43Z","pushed_at":"2018-07-23T12:42:13Z","git_url":"git://github.com/bvaughn/react-highlight-words.git","ssh_url":"git@github.com:bvaughn/react-highlight-words.git","clone_url":"https://github.com/bvaughn/react-highlight-words.git","svn_url":"https://github.com/bvaughn/react-highlight-words","homepage":"https://bvaughn.github.io/react-highlight-words/","size":2347,"stargazers_count":462,"watchers_count":462,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":51,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":51,"open_issues":3,"watchers":462,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/61"},"html":{"href":"https://github.com/bvaughn/react-highlight-words/pull/61"},"issue":{"href":"https://api.github.com/repos/bvaughn/react-highlight-words/issues/61"},"comments":{"href":"https://api.github.com/repos/bvaughn/react-highlight-words/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bvaughn/react-highlight-words/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/bvaughn/react-highlight-words/statuses/9a34f91f9aeaa4517b66cd64093990506beccc44"}},"author_association":"NONE"}}
{"actor":{"display_login":"z3roshot"}}