{"action":"created","comment":{"url":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/comments/91381446","pull_request_review_id":11890110,"id":91381446,"diff_hunk":"@@ -74,16 +74,12 @@ class InvertedIndex {\n    * @param {String} searchTerm\n    * @return {Object} result\n    */\n-  searchIndex(fileName, searchTerm) {\n-\n+  searchIndex(fileName, ...searchTerm) {\n     const result = {};\n     let termsArr = [];\n+    let query = this.sanitizeSearchQuery(...searchTerm);","path":"src/inverted-index.js","position":9,"original_position":9,"commit_id":"bc8e154bb3a0d540ac9b171e5fdbff2f4f1a23c9","original_commit_id":"bc8e154bb3a0d540ac9b171e5fdbff2f4f1a23c9","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).<br>'spread/rest operator' is only available in ES6 (use 'esversion: 6').","created_at":"2016-12-07T20:35:12Z","updated_at":"2016-12-07T20:35:12Z","html_url":"https://github.com/andela-fabolaji/inverted-index/pull/11#discussion_r91381446","pull_request_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/comments/91381446"},"html":{"href":"https://github.com/andela-fabolaji/inverted-index/pull/11#discussion_r91381446"},"pull_request":{"href":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/11","id":97001924,"html_url":"https://github.com/andela-fabolaji/inverted-index/pull/11","diff_url":"https://github.com/andela-fabolaji/inverted-index/pull/11.diff","patch_url":"https://github.com/andela-fabolaji/inverted-index/pull/11.patch","issue_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues/11","number":11,"state":"open","locked":false,"title":"fix eslint issue","user":{"login":"andela-fabolaji","id":23451281,"avatar_url":"https://avatars.githubusercontent.com/u/23451281?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-fabolaji","html_url":"https://github.com/andela-fabolaji","followers_url":"https://api.github.com/users/andela-fabolaji/followers","following_url":"https://api.github.com/users/andela-fabolaji/following{/other_user}","gists_url":"https://api.github.com/users/andela-fabolaji/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-fabolaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-fabolaji/subscriptions","organizations_url":"https://api.github.com/users/andela-fabolaji/orgs","repos_url":"https://api.github.com/users/andela-fabolaji/repos","events_url":"https://api.github.com/users/andela-fabolaji/events{/privacy}","received_events_url":"https://api.github.com/users/andela-fabolaji/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-07T20:35:05Z","updated_at":"2016-12-07T20:35:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b632738179139f98a151a69569db90786f522a62","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/11/commits","review_comments_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/11/comments","review_comment_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues/11/comments","statuses_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/statuses/bc8e154bb3a0d540ac9b171e5fdbff2f4f1a23c9","head":{"label":"andela-fabolaji:bug-fixes","ref":"bug-fixes","sha":"bc8e154bb3a0d540ac9b171e5fdbff2f4f1a23c9","user":{"login":"andela-fabolaji","id":23451281,"avatar_url":"https://avatars.githubusercontent.com/u/23451281?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-fabolaji","html_url":"https://github.com/andela-fabolaji","followers_url":"https://api.github.com/users/andela-fabolaji/followers","following_url":"https://api.github.com/users/andela-fabolaji/following{/other_user}","gists_url":"https://api.github.com/users/andela-fabolaji/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-fabolaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-fabolaji/subscriptions","organizations_url":"https://api.github.com/users/andela-fabolaji/orgs","repos_url":"https://api.github.com/users/andela-fabolaji/repos","events_url":"https://api.github.com/users/andela-fabolaji/events{/privacy}","received_events_url":"https://api.github.com/users/andela-fabolaji/received_events","type":"User","site_admin":false},"repo":{"id":74109651,"name":"inverted-index","full_name":"andela-fabolaji/inverted-index","owner":{"login":"andela-fabolaji","id":23451281,"avatar_url":"https://avatars.githubusercontent.com/u/23451281?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-fabolaji","html_url":"https://github.com/andela-fabolaji","followers_url":"https://api.github.com/users/andela-fabolaji/followers","following_url":"https://api.github.com/users/andela-fabolaji/following{/other_user}","gists_url":"https://api.github.com/users/andela-fabolaji/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-fabolaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-fabolaji/subscriptions","organizations_url":"https://api.github.com/users/andela-fabolaji/orgs","repos_url":"https://api.github.com/users/andela-fabolaji/repos","events_url":"https://api.github.com/users/andela-fabolaji/events{/privacy}","received_events_url":"https://api.github.com/users/andela-fabolaji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-fabolaji/inverted-index","description":null,"fork":false,"url":"https://api.github.com/repos/andela-fabolaji/inverted-index","forks_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/forks","keys_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/teams","hooks_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/hooks","issue_events_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues/events{/number}","events_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/events","assignees_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/assignees{/user}","branches_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/branches{/branch}","tags_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/tags","blobs_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/languages","stargazers_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/stargazers","contributors_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/contributors","subscribers_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/subscribers","subscription_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/subscription","commits_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/contents/{+path}","compare_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/merges","archive_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/downloads","issues_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues{/number}","pulls_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/labels{/name}","releases_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/releases{/id}","deployments_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/deployments","created_at":"2016-11-18T08:20:04Z","updated_at":"2016-12-05T09:56:22Z","pushed_at":"2016-12-07T20:35:05Z","git_url":"git://github.com/andela-fabolaji/inverted-index.git","ssh_url":"git@github.com:andela-fabolaji/inverted-index.git","clone_url":"https://github.com/andela-fabolaji/inverted-index.git","svn_url":"https://github.com/andela-fabolaji/inverted-index","homepage":"http://invertedindexapp.herokuapp.com","size":164,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"andela-fabolaji:master","ref":"master","sha":"ca52fadfd16f6b9224c36663629e7d999d8ce8bd","user":{"login":"andela-fabolaji","id":23451281,"avatar_url":"https://avatars.githubusercontent.com/u/23451281?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-fabolaji","html_url":"https://github.com/andela-fabolaji","followers_url":"https://api.github.com/users/andela-fabolaji/followers","following_url":"https://api.github.com/users/andela-fabolaji/following{/other_user}","gists_url":"https://api.github.com/users/andela-fabolaji/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-fabolaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-fabolaji/subscriptions","organizations_url":"https://api.github.com/users/andela-fabolaji/orgs","repos_url":"https://api.github.com/users/andela-fabolaji/repos","events_url":"https://api.github.com/users/andela-fabolaji/events{/privacy}","received_events_url":"https://api.github.com/users/andela-fabolaji/received_events","type":"User","site_admin":false},"repo":{"id":74109651,"name":"inverted-index","full_name":"andela-fabolaji/inverted-index","owner":{"login":"andela-fabolaji","id":23451281,"avatar_url":"https://avatars.githubusercontent.com/u/23451281?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-fabolaji","html_url":"https://github.com/andela-fabolaji","followers_url":"https://api.github.com/users/andela-fabolaji/followers","following_url":"https://api.github.com/users/andela-fabolaji/following{/other_user}","gists_url":"https://api.github.com/users/andela-fabolaji/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-fabolaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-fabolaji/subscriptions","organizations_url":"https://api.github.com/users/andela-fabolaji/orgs","repos_url":"https://api.github.com/users/andela-fabolaji/repos","events_url":"https://api.github.com/users/andela-fabolaji/events{/privacy}","received_events_url":"https://api.github.com/users/andela-fabolaji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-fabolaji/inverted-index","description":null,"fork":false,"url":"https://api.github.com/repos/andela-fabolaji/inverted-index","forks_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/forks","keys_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/teams","hooks_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/hooks","issue_events_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues/events{/number}","events_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/events","assignees_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/assignees{/user}","branches_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/branches{/branch}","tags_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/tags","blobs_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/languages","stargazers_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/stargazers","contributors_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/contributors","subscribers_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/subscribers","subscription_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/subscription","commits_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/contents/{+path}","compare_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/merges","archive_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/downloads","issues_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues{/number}","pulls_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/labels{/name}","releases_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/releases{/id}","deployments_url":"https://api.github.com/repos/andela-fabolaji/inverted-index/deployments","created_at":"2016-11-18T08:20:04Z","updated_at":"2016-12-05T09:56:22Z","pushed_at":"2016-12-07T20:35:05Z","git_url":"git://github.com/andela-fabolaji/inverted-index.git","ssh_url":"git@github.com:andela-fabolaji/inverted-index.git","clone_url":"https://github.com/andela-fabolaji/inverted-index.git","svn_url":"https://github.com/andela-fabolaji/inverted-index","homepage":"http://invertedindexapp.herokuapp.com","size":164,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/11"},"html":{"href":"https://github.com/andela-fabolaji/inverted-index/pull/11"},"issue":{"href":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues/11"},"comments":{"href":"https://api.github.com/repos/andela-fabolaji/inverted-index/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-fabolaji/inverted-index/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/andela-fabolaji/inverted-index/statuses/bc8e154bb3a0d540ac9b171e5fdbff2f4f1a23c9"}}}}
{"actor":{"display_login":"houndci-bot"}}