{"action":"created","comment":{"url":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/comments/216481437","pull_request_review_id":153973632,"id":216481437,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjQ4MTQzNw==","diff_hunk":"@@ -0,0 +1,230 @@\n+'use strict';\n+\n+// ------------------------------------------------------------------------------------------------\n+// CHALLENGE 1\n+//\n+// Write a function named isNum that takes in a string or number of any length.\n+// This function should use a regular expression pattern to return true if the input\n+// contains a number, and false if the input does not contain a number.\n+//\n+// Example input/output:\n+// 12345 => true\n+// '12345' => true\n+// 'h3llo world' => true\n+// 'hello world' => false\n+// ------------------------------------------------------------------------------------------------\n+\n+const isNum = (num) => {\n+  // Solution code here...\n+  let regex = /[0-9]/g\n+  if(regex.test(num)) {\n+      return true;","path":"regExp1/challenges-04.test.js","position":21,"original_position":21,"commit_id":"8f88c8d13539d7ec16aabdf60c57875aaf499026","original_commit_id":"8f88c8d13539d7ec16aabdf60c57875aaf499026","user":{"login":"zarkle","id":31747859,"node_id":"MDQ6VXNlcjMxNzQ3ODU5","avatar_url":"https://avatars1.githubusercontent.com/u/31747859?v=4","gravatar_id":"","url":"https://api.github.com/users/zarkle","html_url":"https://github.com/zarkle","followers_url":"https://api.github.com/users/zarkle/followers","following_url":"https://api.github.com/users/zarkle/following{/other_user}","gists_url":"https://api.github.com/users/zarkle/gists{/gist_id}","starred_url":"https://api.github.com/users/zarkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarkle/subscriptions","organizations_url":"https://api.github.com/users/zarkle/orgs","repos_url":"https://api.github.com/users/zarkle/repos","events_url":"https://api.github.com/users/zarkle/events{/privacy}","received_events_url":"https://api.github.com/users/zarkle/received_events","type":"User","site_admin":false},"body":"the test() method returns a boolean so having an `if` conditional is redundant. just `return regex.text(num)`","created_at":"2018-09-10T21:37:38Z","updated_at":"2018-09-10T21:37:38Z","html_url":"https://github.com/mtncrawler/code-challenges/pull/5#discussion_r216481437","pull_request_url":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/comments/216481437"},"html":{"href":"https://github.com/mtncrawler/code-challenges/pull/5#discussion_r216481437"},"pull_request":{"href":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/5","id":214438428,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0NDM4NDI4","html_url":"https://github.com/mtncrawler/code-challenges/pull/5","diff_url":"https://github.com/mtncrawler/code-challenges/pull/5.diff","patch_url":"https://github.com/mtncrawler/code-challenges/pull/5.patch","issue_url":"https://api.github.com/repos/mtncrawler/code-challenges/issues/5","number":5,"state":"open","locked":false,"title":"Reg exp1","user":{"login":"mtncrawler","id":36429023,"node_id":"MDQ6VXNlcjM2NDI5MDIz","avatar_url":"https://avatars3.githubusercontent.com/u/36429023?v=4","gravatar_id":"","url":"https://api.github.com/users/mtncrawler","html_url":"https://github.com/mtncrawler","followers_url":"https://api.github.com/users/mtncrawler/followers","following_url":"https://api.github.com/users/mtncrawler/following{/other_user}","gists_url":"https://api.github.com/users/mtncrawler/gists{/gist_id}","starred_url":"https://api.github.com/users/mtncrawler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtncrawler/subscriptions","organizations_url":"https://api.github.com/users/mtncrawler/orgs","repos_url":"https://api.github.com/users/mtncrawler/repos","events_url":"https://api.github.com/users/mtncrawler/events{/privacy}","received_events_url":"https://api.github.com/users/mtncrawler/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-10T20:44:04Z","updated_at":"2018-09-10T21:37:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d61c69ead036e71e37d9a8609976676560498710","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/5/commits","review_comments_url":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/5/comments","review_comment_url":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mtncrawler/code-challenges/issues/5/comments","statuses_url":"https://api.github.com/repos/mtncrawler/code-challenges/statuses/8f88c8d13539d7ec16aabdf60c57875aaf499026","head":{"label":"mtncrawler:regExp1","ref":"regExp1","sha":"8f88c8d13539d7ec16aabdf60c57875aaf499026","user":{"login":"mtncrawler","id":36429023,"node_id":"MDQ6VXNlcjM2NDI5MDIz","avatar_url":"https://avatars3.githubusercontent.com/u/36429023?v=4","gravatar_id":"","url":"https://api.github.com/users/mtncrawler","html_url":"https://github.com/mtncrawler","followers_url":"https://api.github.com/users/mtncrawler/followers","following_url":"https://api.github.com/users/mtncrawler/following{/other_user}","gists_url":"https://api.github.com/users/mtncrawler/gists{/gist_id}","starred_url":"https://api.github.com/users/mtncrawler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtncrawler/subscriptions","organizations_url":"https://api.github.com/users/mtncrawler/orgs","repos_url":"https://api.github.com/users/mtncrawler/repos","events_url":"https://api.github.com/users/mtncrawler/events{/privacy}","received_events_url":"https://api.github.com/users/mtncrawler/received_events","type":"User","site_admin":false},"repo":{"id":147415832,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc0MTU4MzI=","name":"code-challenges","full_name":"mtncrawler/code-challenges","owner":{"login":"mtncrawler","id":36429023,"node_id":"MDQ6VXNlcjM2NDI5MDIz","avatar_url":"https://avatars3.githubusercontent.com/u/36429023?v=4","gravatar_id":"","url":"https://api.github.com/users/mtncrawler","html_url":"https://github.com/mtncrawler","followers_url":"https://api.github.com/users/mtncrawler/followers","following_url":"https://api.github.com/users/mtncrawler/following{/other_user}","gists_url":"https://api.github.com/users/mtncrawler/gists{/gist_id}","starred_url":"https://api.github.com/users/mtncrawler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtncrawler/subscriptions","organizations_url":"https://api.github.com/users/mtncrawler/orgs","repos_url":"https://api.github.com/users/mtncrawler/repos","events_url":"https://api.github.com/users/mtncrawler/events{/privacy}","received_events_url":"https://api.github.com/users/mtncrawler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mtncrawler/code-challenges","description":null,"fork":false,"url":"https://api.github.com/repos/mtncrawler/code-challenges","forks_url":"https://api.github.com/repos/mtncrawler/code-challenges/forks","keys_url":"https://api.github.com/repos/mtncrawler/code-challenges/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mtncrawler/code-challenges/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mtncrawler/code-challenges/teams","hooks_url":"https://api.github.com/repos/mtncrawler/code-challenges/hooks","issue_events_url":"https://api.github.com/repos/mtncrawler/code-challenges/issues/events{/number}","events_url":"https://api.github.com/repos/mtncrawler/code-challenges/events","assignees_url":"https://api.github.com/repos/mtncrawler/code-challenges/assignees{/user}","branches_url":"https://api.github.com/repos/mtncrawler/code-challenges/branches{/branch}","tags_url":"https://api.github.com/repos/mtncrawler/code-challenges/tags","blobs_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/refs{/sha}","trees_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mtncrawler/code-challenges/statuses/{sha}","languages_url":"https://api.github.com/repos/mtncrawler/code-challenges/languages","stargazers_url":"https://api.github.com/repos/mtncrawler/code-challenges/stargazers","contributors_url":"https://api.github.com/repos/mtncrawler/code-challenges/contributors","subscribers_url":"https://api.github.com/repos/mtncrawler/code-challenges/subscribers","subscription_url":"https://api.github.com/repos/mtncrawler/code-challenges/subscription","commits_url":"https://api.github.com/repos/mtncrawler/code-challenges/commits{/sha}","git_commits_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/commits{/sha}","comments_url":"https://api.github.com/repos/mtncrawler/code-challenges/comments{/number}","issue_comment_url":"https://api.github.com/repos/mtncrawler/code-challenges/issues/comments{/number}","contents_url":"https://api.github.com/repos/mtncrawler/code-challenges/contents/{+path}","compare_url":"https://api.github.com/repos/mtncrawler/code-challenges/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mtncrawler/code-challenges/merges","archive_url":"https://api.github.com/repos/mtncrawler/code-challenges/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mtncrawler/code-challenges/downloads","issues_url":"https://api.github.com/repos/mtncrawler/code-challenges/issues{/number}","pulls_url":"https://api.github.com/repos/mtncrawler/code-challenges/pulls{/number}","milestones_url":"https://api.github.com/repos/mtncrawler/code-challenges/milestones{/number}","notifications_url":"https://api.github.com/repos/mtncrawler/code-challenges/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mtncrawler/code-challenges/labels{/name}","releases_url":"https://api.github.com/repos/mtncrawler/code-challenges/releases{/id}","deployments_url":"https://api.github.com/repos/mtncrawler/code-challenges/deployments","created_at":"2018-09-04T20:46:00Z","updated_at":"2018-09-07T20:23:36Z","pushed_at":"2018-09-10T20:44:04Z","git_url":"git://github.com/mtncrawler/code-challenges.git","ssh_url":"git@github.com:mtncrawler/code-challenges.git","clone_url":"https://github.com/mtncrawler/code-challenges.git","svn_url":"https://github.com/mtncrawler/code-challenges","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"mtncrawler:master","ref":"master","sha":"ff09e956690ce42209fcefcea90d87653ab67e62","user":{"login":"mtncrawler","id":36429023,"node_id":"MDQ6VXNlcjM2NDI5MDIz","avatar_url":"https://avatars3.githubusercontent.com/u/36429023?v=4","gravatar_id":"","url":"https://api.github.com/users/mtncrawler","html_url":"https://github.com/mtncrawler","followers_url":"https://api.github.com/users/mtncrawler/followers","following_url":"https://api.github.com/users/mtncrawler/following{/other_user}","gists_url":"https://api.github.com/users/mtncrawler/gists{/gist_id}","starred_url":"https://api.github.com/users/mtncrawler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtncrawler/subscriptions","organizations_url":"https://api.github.com/users/mtncrawler/orgs","repos_url":"https://api.github.com/users/mtncrawler/repos","events_url":"https://api.github.com/users/mtncrawler/events{/privacy}","received_events_url":"https://api.github.com/users/mtncrawler/received_events","type":"User","site_admin":false},"repo":{"id":147415832,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc0MTU4MzI=","name":"code-challenges","full_name":"mtncrawler/code-challenges","owner":{"login":"mtncrawler","id":36429023,"node_id":"MDQ6VXNlcjM2NDI5MDIz","avatar_url":"https://avatars3.githubusercontent.com/u/36429023?v=4","gravatar_id":"","url":"https://api.github.com/users/mtncrawler","html_url":"https://github.com/mtncrawler","followers_url":"https://api.github.com/users/mtncrawler/followers","following_url":"https://api.github.com/users/mtncrawler/following{/other_user}","gists_url":"https://api.github.com/users/mtncrawler/gists{/gist_id}","starred_url":"https://api.github.com/users/mtncrawler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtncrawler/subscriptions","organizations_url":"https://api.github.com/users/mtncrawler/orgs","repos_url":"https://api.github.com/users/mtncrawler/repos","events_url":"https://api.github.com/users/mtncrawler/events{/privacy}","received_events_url":"https://api.github.com/users/mtncrawler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mtncrawler/code-challenges","description":null,"fork":false,"url":"https://api.github.com/repos/mtncrawler/code-challenges","forks_url":"https://api.github.com/repos/mtncrawler/code-challenges/forks","keys_url":"https://api.github.com/repos/mtncrawler/code-challenges/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mtncrawler/code-challenges/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mtncrawler/code-challenges/teams","hooks_url":"https://api.github.com/repos/mtncrawler/code-challenges/hooks","issue_events_url":"https://api.github.com/repos/mtncrawler/code-challenges/issues/events{/number}","events_url":"https://api.github.com/repos/mtncrawler/code-challenges/events","assignees_url":"https://api.github.com/repos/mtncrawler/code-challenges/assignees{/user}","branches_url":"https://api.github.com/repos/mtncrawler/code-challenges/branches{/branch}","tags_url":"https://api.github.com/repos/mtncrawler/code-challenges/tags","blobs_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/refs{/sha}","trees_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mtncrawler/code-challenges/statuses/{sha}","languages_url":"https://api.github.com/repos/mtncrawler/code-challenges/languages","stargazers_url":"https://api.github.com/repos/mtncrawler/code-challenges/stargazers","contributors_url":"https://api.github.com/repos/mtncrawler/code-challenges/contributors","subscribers_url":"https://api.github.com/repos/mtncrawler/code-challenges/subscribers","subscription_url":"https://api.github.com/repos/mtncrawler/code-challenges/subscription","commits_url":"https://api.github.com/repos/mtncrawler/code-challenges/commits{/sha}","git_commits_url":"https://api.github.com/repos/mtncrawler/code-challenges/git/commits{/sha}","comments_url":"https://api.github.com/repos/mtncrawler/code-challenges/comments{/number}","issue_comment_url":"https://api.github.com/repos/mtncrawler/code-challenges/issues/comments{/number}","contents_url":"https://api.github.com/repos/mtncrawler/code-challenges/contents/{+path}","compare_url":"https://api.github.com/repos/mtncrawler/code-challenges/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mtncrawler/code-challenges/merges","archive_url":"https://api.github.com/repos/mtncrawler/code-challenges/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mtncrawler/code-challenges/downloads","issues_url":"https://api.github.com/repos/mtncrawler/code-challenges/issues{/number}","pulls_url":"https://api.github.com/repos/mtncrawler/code-challenges/pulls{/number}","milestones_url":"https://api.github.com/repos/mtncrawler/code-challenges/milestones{/number}","notifications_url":"https://api.github.com/repos/mtncrawler/code-challenges/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mtncrawler/code-challenges/labels{/name}","releases_url":"https://api.github.com/repos/mtncrawler/code-challenges/releases{/id}","deployments_url":"https://api.github.com/repos/mtncrawler/code-challenges/deployments","created_at":"2018-09-04T20:46:00Z","updated_at":"2018-09-07T20:23:36Z","pushed_at":"2018-09-10T20:44:04Z","git_url":"git://github.com/mtncrawler/code-challenges.git","ssh_url":"git@github.com:mtncrawler/code-challenges.git","clone_url":"https://github.com/mtncrawler/code-challenges.git","svn_url":"https://github.com/mtncrawler/code-challenges","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/5"},"html":{"href":"https://github.com/mtncrawler/code-challenges/pull/5"},"issue":{"href":"https://api.github.com/repos/mtncrawler/code-challenges/issues/5"},"comments":{"href":"https://api.github.com/repos/mtncrawler/code-challenges/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mtncrawler/code-challenges/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/mtncrawler/code-challenges/statuses/8f88c8d13539d7ec16aabdf60c57875aaf499026"}},"author_association":"OWNER"}}
{"actor":{"display_login":"zarkle"}}