{"action":"created","comment":{"url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/comments/89483207","pull_request_review_id":10028079,"id":89483207,"diff_hunk":"@@ -3,31 +3,88 @@ const stringClass = {\n     return /[aeiou]/.test(this);\n   },\n \n-  toUpper() { },\n+  toUpper() {\n+    return this.replace(/[a-z]/g, caps =>\n+      String.fromCharCode(caps.charCodeAt(0) - 32)\n+    );\n+  },\n \n-  toLower() { },\n+  toLower() {\n+    return this.replace(/[A-Z]/g, lower =>\n+      String.fromCharCode(lower.charCodeAt(0) + 32)\n+    );\n+  },\n \n-  ucFirst() { },\n+  ucFirst() {\n+    return this.replace(this[0], this[0].toUpper());\n+  },\n \n-  isQuestion() { },\n+  isQuestion() {\n+    return /\\?$/.test(this);\n+  },\n \n-  words() { },\n+  words() {\n+    return this.replace(/[^\\w\\s]/g, '').split(/\\s+/);\n+  },\n \n-  wordCount() { },\n+  wordCount() {\n+    return this.words().length;\n+  },\n \n-  toCurrency() { },\n+  toCurrency() {\n+    const digits = this.split(/\\./);\n+    digits[1] = digits[1] || '00';\n+    digits[0] = digits[0].split('').reverse().join('')\n+      .replace(/\\d{3}/, value => `${value},`)\n+      .split('')\n+      .reverse()\n+      .join('');\n+    return `${digits[0]}.${digits[1]}`;\n+  },\n \n-  inverseCase() { },\n+  fromCurrency() {\n+    return this.replace(/,/g, '');\n+  },\n \n-  alternatingCase() { },\n+  inverseCase() {","path":"src/stringClass.js","position":56,"original_position":56,"commit_id":"d8b7b0fc014da7bfb48722717ae66ebe71148ab6","original_commit_id":"d8b7b0fc014da7bfb48722717ae66ebe71148ab6","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":"'concise methods' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).","created_at":"2016-11-24T11:47:46Z","updated_at":"2016-11-24T11:47:46Z","html_url":"https://github.com/andela-aatanda/checkpoint2-string-class/pull/5#discussion_r89483207","pull_request_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/comments/89483207"},"html":{"href":"https://github.com/andela-aatanda/checkpoint2-string-class/pull/5#discussion_r89483207"},"pull_request":{"href":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/5","id":95164322,"html_url":"https://github.com/andela-aatanda/checkpoint2-string-class/pull/5","diff_url":"https://github.com/andela-aatanda/checkpoint2-string-class/pull/5.diff","patch_url":"https://github.com/andela-aatanda/checkpoint2-string-class/pull/5.patch","issue_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues/5","number":5,"state":"open","locked":false,"title":"Update Source file to pass Tests","user":{"login":"andela-aatanda","id":10584060,"avatar_url":"https://avatars.githubusercontent.com/u/10584060?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-aatanda","html_url":"https://github.com/andela-aatanda","followers_url":"https://api.github.com/users/andela-aatanda/followers","following_url":"https://api.github.com/users/andela-aatanda/following{/other_user}","gists_url":"https://api.github.com/users/andela-aatanda/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-aatanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-aatanda/subscriptions","organizations_url":"https://api.github.com/users/andela-aatanda/orgs","repos_url":"https://api.github.com/users/andela-aatanda/repos","events_url":"https://api.github.com/users/andela-aatanda/events{/privacy}","received_events_url":"https://api.github.com/users/andela-aatanda/received_events","type":"User","site_admin":false},"body":"### What does this PR do\r\n\r\nUpdate source file such that all Test Suite passes\r\n\r\n### How to manually test this\r\n\r\nCheck the badges","created_at":"2016-11-24T11:47:32Z","updated_at":"2016-11-24T11:47:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6544a3bfaa0e56468651240db1a7e7658511719","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/5/commits","review_comments_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/5/comments","review_comment_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues/5/comments","statuses_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/statuses/d8b7b0fc014da7bfb48722717ae66ebe71148ab6","head":{"label":"andela-aatanda:development","ref":"development","sha":"d8b7b0fc014da7bfb48722717ae66ebe71148ab6","user":{"login":"andela-aatanda","id":10584060,"avatar_url":"https://avatars.githubusercontent.com/u/10584060?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-aatanda","html_url":"https://github.com/andela-aatanda","followers_url":"https://api.github.com/users/andela-aatanda/followers","following_url":"https://api.github.com/users/andela-aatanda/following{/other_user}","gists_url":"https://api.github.com/users/andela-aatanda/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-aatanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-aatanda/subscriptions","organizations_url":"https://api.github.com/users/andela-aatanda/orgs","repos_url":"https://api.github.com/users/andela-aatanda/repos","events_url":"https://api.github.com/users/andela-aatanda/events{/privacy}","received_events_url":"https://api.github.com/users/andela-aatanda/received_events","type":"User","site_admin":false},"repo":{"id":74455650,"name":"checkpoint2-string-class","full_name":"andela-aatanda/checkpoint2-string-class","owner":{"login":"andela-aatanda","id":10584060,"avatar_url":"https://avatars.githubusercontent.com/u/10584060?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-aatanda","html_url":"https://github.com/andela-aatanda","followers_url":"https://api.github.com/users/andela-aatanda/followers","following_url":"https://api.github.com/users/andela-aatanda/following{/other_user}","gists_url":"https://api.github.com/users/andela-aatanda/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-aatanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-aatanda/subscriptions","organizations_url":"https://api.github.com/users/andela-aatanda/orgs","repos_url":"https://api.github.com/users/andela-aatanda/repos","events_url":"https://api.github.com/users/andela-aatanda/events{/privacy}","received_events_url":"https://api.github.com/users/andela-aatanda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-aatanda/checkpoint2-string-class","description":"String class that extends String.protototype method in javascript","fork":false,"url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class","forks_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/forks","keys_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/teams","hooks_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/hooks","issue_events_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues/events{/number}","events_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/events","assignees_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/assignees{/user}","branches_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/branches{/branch}","tags_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/tags","blobs_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/languages","stargazers_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/stargazers","contributors_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/contributors","subscribers_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/subscribers","subscription_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/subscription","commits_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/contents/{+path}","compare_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/merges","archive_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/downloads","issues_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues{/number}","pulls_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/labels{/name}","releases_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/releases{/id}","deployments_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/deployments","created_at":"2016-11-22T09:20:53Z","updated_at":"2016-11-22T09:21:55Z","pushed_at":"2016-11-24T11:47:32Z","git_url":"git://github.com/andela-aatanda/checkpoint2-string-class.git","ssh_url":"git@github.com:andela-aatanda/checkpoint2-string-class.git","clone_url":"https://github.com/andela-aatanda/checkpoint2-string-class.git","svn_url":"https://github.com/andela-aatanda/checkpoint2-string-class","homepage":null,"size":23,"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-aatanda:master","ref":"master","sha":"755780b278ea8b42fd605d711c10720d6203a12b","user":{"login":"andela-aatanda","id":10584060,"avatar_url":"https://avatars.githubusercontent.com/u/10584060?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-aatanda","html_url":"https://github.com/andela-aatanda","followers_url":"https://api.github.com/users/andela-aatanda/followers","following_url":"https://api.github.com/users/andela-aatanda/following{/other_user}","gists_url":"https://api.github.com/users/andela-aatanda/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-aatanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-aatanda/subscriptions","organizations_url":"https://api.github.com/users/andela-aatanda/orgs","repos_url":"https://api.github.com/users/andela-aatanda/repos","events_url":"https://api.github.com/users/andela-aatanda/events{/privacy}","received_events_url":"https://api.github.com/users/andela-aatanda/received_events","type":"User","site_admin":false},"repo":{"id":74455650,"name":"checkpoint2-string-class","full_name":"andela-aatanda/checkpoint2-string-class","owner":{"login":"andela-aatanda","id":10584060,"avatar_url":"https://avatars.githubusercontent.com/u/10584060?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-aatanda","html_url":"https://github.com/andela-aatanda","followers_url":"https://api.github.com/users/andela-aatanda/followers","following_url":"https://api.github.com/users/andela-aatanda/following{/other_user}","gists_url":"https://api.github.com/users/andela-aatanda/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-aatanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-aatanda/subscriptions","organizations_url":"https://api.github.com/users/andela-aatanda/orgs","repos_url":"https://api.github.com/users/andela-aatanda/repos","events_url":"https://api.github.com/users/andela-aatanda/events{/privacy}","received_events_url":"https://api.github.com/users/andela-aatanda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-aatanda/checkpoint2-string-class","description":"String class that extends String.protototype method in javascript","fork":false,"url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class","forks_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/forks","keys_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/teams","hooks_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/hooks","issue_events_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues/events{/number}","events_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/events","assignees_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/assignees{/user}","branches_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/branches{/branch}","tags_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/tags","blobs_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/languages","stargazers_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/stargazers","contributors_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/contributors","subscribers_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/subscribers","subscription_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/subscription","commits_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/contents/{+path}","compare_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/merges","archive_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/downloads","issues_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues{/number}","pulls_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/labels{/name}","releases_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/releases{/id}","deployments_url":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/deployments","created_at":"2016-11-22T09:20:53Z","updated_at":"2016-11-22T09:21:55Z","pushed_at":"2016-11-24T11:47:32Z","git_url":"git://github.com/andela-aatanda/checkpoint2-string-class.git","ssh_url":"git@github.com:andela-aatanda/checkpoint2-string-class.git","clone_url":"https://github.com/andela-aatanda/checkpoint2-string-class.git","svn_url":"https://github.com/andela-aatanda/checkpoint2-string-class","homepage":null,"size":23,"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-aatanda/checkpoint2-string-class/pulls/5"},"html":{"href":"https://github.com/andela-aatanda/checkpoint2-string-class/pull/5"},"issue":{"href":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues/5"},"comments":{"href":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/andela-aatanda/checkpoint2-string-class/statuses/d8b7b0fc014da7bfb48722717ae66ebe71148ab6"}}}}
{"actor":{"display_login":"houndci-bot"}}