{"action":"created","comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/comments/65333574","id":65333574,"diff_hunk":"@@ -5,9 +5,10 @@ window.common = (function(global) {\n   } = global;\n \n   const detectFunctionCall = /function\\s*?\\(|function\\s+\\w+\\s*?\\(/gi;\n+  const detectFunctionInComment = /(\\/\\/)[a-z0-9\\s]*?function|(\\/\\*)[a-z0-9\\s\\W]*?function[a-z0-9\\s\\W]*?(\\*\\/)/gi;","path":"client/commonFramework/detect-unsafe-code-stream.js","position":4,"original_position":4,"commit_id":"d981fac42b4c0abfa5c3015bad971abffb0798eb","original_commit_id":"d981fac42b4c0abfa5c3015bad971abffb0798eb","user":{"login":"raisedadead","id":1884376,"avatar_url":"https://avatars.githubusercontent.com/u/1884376?v=3","gravatar_id":"","url":"https://api.github.com/users/raisedadead","html_url":"https://github.com/raisedadead","followers_url":"https://api.github.com/users/raisedadead/followers","following_url":"https://api.github.com/users/raisedadead/following{/other_user}","gists_url":"https://api.github.com/users/raisedadead/gists{/gist_id}","starred_url":"https://api.github.com/users/raisedadead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raisedadead/subscriptions","organizations_url":"https://api.github.com/users/raisedadead/orgs","repos_url":"https://api.github.com/users/raisedadead/repos","events_url":"https://api.github.com/users/raisedadead/events{/privacy}","received_events_url":"https://api.github.com/users/raisedadead/received_events","type":"User","site_admin":false},"body":"This is breaking the CI.\r\nYou need to break this to lesser than 80 chars, as multiline\r\nRefer: http://stackoverflow.com/questions/12317049/how-to-split-a-long-regular-expression-into-multiple-lines-in-javascript","created_at":"2016-06-01T10:02:33Z","updated_at":"2016-06-01T10:02:33Z","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/8891#discussion_r65333574","pull_request_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/8891","_links":{"self":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/comments/65333574"},"html":{"href":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/8891#discussion_r65333574"},"pull_request":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/8891"}}},"pull_request":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/8891","id":72150816,"html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/8891","diff_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/8891.diff","patch_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/8891.patch","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/8891","number":8891,"state":"open","locked":false,"title":"FIX Unfinished Function Declaration in Comments","user":{"login":"Bouncey","id":18572518,"avatar_url":"https://avatars.githubusercontent.com/u/18572518?v=3","gravatar_id":"","url":"https://api.github.com/users/Bouncey","html_url":"https://github.com/Bouncey","followers_url":"https://api.github.com/users/Bouncey/followers","following_url":"https://api.github.com/users/Bouncey/following{/other_user}","gists_url":"https://api.github.com/users/Bouncey/gists{/gist_id}","starred_url":"https://api.github.com/users/Bouncey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bouncey/subscriptions","organizations_url":"https://api.github.com/users/Bouncey/orgs","repos_url":"https://api.github.com/users/Bouncey/repos","events_url":"https://api.github.com/users/Bouncey/events{/privacy}","received_events_url":"https://api.github.com/users/Bouncey/received_events","type":"User","site_admin":false},"body":"<!-- FreeCodeCamp Pull Request Template -->\r\n\r\n<!-- IMPORTANT Please review https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/CONTRIBUTING.md for detailed contributing guidelines -->\r\n<!-- Help with PRs can be found at https://gitter.im/FreeCodeCamp/HelpContributors -->\r\n<!-- Make sure that your PR is not a duplicate -->\r\n\r\n#### Pre-Submission Checklist\r\n<!-- Go over all points below, and put an `x` in all the boxes that apply. -->\r\n<!-- All points should be checked, otherwise, read the CONTRIBUTING guidelines from above-->\r\n<!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] Your pull request targets the `staging` branch of FreeCodeCamp.\r\n- [x] Branch starts with either `fix/`, `feature/`, or `translate/` (e.g. `fix/signin-issue`)\r\n- [x] You have only one commit (if not, [squash](https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/git-rebase#squashing-multiple-commits-into-one) them into one commit).\r\n- [x] All new and existing tests pass the command `npm run test-challenges`. Use `git commit --amend` to amend any fixes.\r\n\r\n#### Type of Change\r\n<!-- What type of change does your code introduce? Put an `x` in the box that applies. -->\r\n- [x] Small bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds new functionality)\r\n- [ ] Breaking change (fix or feature that would change existing functionality)\r\n- [ ] Add new translation (feature adding new translations)\r\n\r\n#### Checklist:\r\n<!-- Go over all points below, and put an `x` in all the boxes that apply. -->\r\n<!-- If you're unsure about any of these, don't hesitate to ask in the Help Contributors room linked above. We're here to help! -->\r\n- [x] Tested changes locally.\r\n- [x] Closes currently open issue (replace XXXX with an issue no): Closes #8774 \r\n\r\n#### Description\r\n<!-- Describe your changes in detail -->\r\n\r\nAdded regEx to detect if the word `function` was inside a single OR multi line comment. If detected, will not throw Syntax error to the console.\r\n","created_at":"2016-06-01T09:45:08Z","updated_at":"2016-06-01T10:02:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5e9fae5fe6a84d54b6e598aab5a7b9abcf9abc3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/8891/commits","review_comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/8891/comments","review_comment_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/8891/comments","statuses_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/statuses/d981fac42b4c0abfa5c3015bad971abffb0798eb","head":{"label":"Bouncey:FIX/Comment-your-JavaScript-Code","ref":"FIX/Comment-your-JavaScript-Code","sha":"d981fac42b4c0abfa5c3015bad971abffb0798eb","user":{"login":"Bouncey","id":18572518,"avatar_url":"https://avatars.githubusercontent.com/u/18572518?v=3","gravatar_id":"","url":"https://api.github.com/users/Bouncey","html_url":"https://github.com/Bouncey","followers_url":"https://api.github.com/users/Bouncey/followers","following_url":"https://api.github.com/users/Bouncey/following{/other_user}","gists_url":"https://api.github.com/users/Bouncey/gists{/gist_id}","starred_url":"https://api.github.com/users/Bouncey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bouncey/subscriptions","organizations_url":"https://api.github.com/users/Bouncey/orgs","repos_url":"https://api.github.com/users/Bouncey/repos","events_url":"https://api.github.com/users/Bouncey/events{/privacy}","received_events_url":"https://api.github.com/users/Bouncey/received_events","type":"User","site_admin":false},"repo":{"id":60095756,"name":"FreeCodeCamp","full_name":"Bouncey/FreeCodeCamp","owner":{"login":"Bouncey","id":18572518,"avatar_url":"https://avatars.githubusercontent.com/u/18572518?v=3","gravatar_id":"","url":"https://api.github.com/users/Bouncey","html_url":"https://github.com/Bouncey","followers_url":"https://api.github.com/users/Bouncey/followers","following_url":"https://api.github.com/users/Bouncey/following{/other_user}","gists_url":"https://api.github.com/users/Bouncey/gists{/gist_id}","starred_url":"https://api.github.com/users/Bouncey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bouncey/subscriptions","organizations_url":"https://api.github.com/users/Bouncey/orgs","repos_url":"https://api.github.com/users/Bouncey/repos","events_url":"https://api.github.com/users/Bouncey/events{/privacy}","received_events_url":"https://api.github.com/users/Bouncey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bouncey/FreeCodeCamp","description":"The https://FreeCodeCamp.com open source codebase and curriculum. Learn to code and help nonprofits.","fork":true,"url":"https://api.github.com/repos/Bouncey/FreeCodeCamp","forks_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/forks","keys_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/teams","hooks_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/hooks","issue_events_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/issues/events{/number}","events_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/events","assignees_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/assignees{/user}","branches_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/branches{/branch}","tags_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/tags","blobs_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/statuses/{sha}","languages_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/languages","stargazers_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/stargazers","contributors_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/contributors","subscribers_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/subscribers","subscription_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/subscription","commits_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/contents/{+path}","compare_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/merges","archive_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/downloads","issues_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/issues{/number}","pulls_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/pulls{/number}","milestones_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/milestones{/number}","notifications_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/labels{/name}","releases_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/releases{/id}","deployments_url":"https://api.github.com/repos/Bouncey/FreeCodeCamp/deployments","created_at":"2016-05-31T14:17:56Z","updated_at":"2016-05-31T14:17:59Z","pushed_at":"2016-06-01T09:41:12Z","git_url":"git://github.com/Bouncey/FreeCodeCamp.git","ssh_url":"git@github.com:Bouncey/FreeCodeCamp.git","clone_url":"https://github.com/Bouncey/FreeCodeCamp.git","svn_url":"https://github.com/Bouncey/FreeCodeCamp","homepage":"","size":23920,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"staging"}},"base":{"label":"FreeCodeCamp:staging","ref":"staging","sha":"bbacbd3d816f723343b654ee06f7b32ec10a736c","user":{"login":"FreeCodeCamp","id":9892522,"avatar_url":"https://avatars.githubusercontent.com/u/9892522?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeCodeCamp","html_url":"https://github.com/FreeCodeCamp","followers_url":"https://api.github.com/users/FreeCodeCamp/followers","following_url":"https://api.github.com/users/FreeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/FreeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/FreeCodeCamp/orgs","repos_url":"https://api.github.com/users/FreeCodeCamp/repos","events_url":"https://api.github.com/users/FreeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/FreeCodeCamp/received_events","type":"Organization","site_admin":false},"repo":{"id":28457823,"name":"FreeCodeCamp","full_name":"FreeCodeCamp/FreeCodeCamp","owner":{"login":"FreeCodeCamp","id":9892522,"avatar_url":"https://avatars.githubusercontent.com/u/9892522?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeCodeCamp","html_url":"https://github.com/FreeCodeCamp","followers_url":"https://api.github.com/users/FreeCodeCamp/followers","following_url":"https://api.github.com/users/FreeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/FreeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/FreeCodeCamp/orgs","repos_url":"https://api.github.com/users/FreeCodeCamp/repos","events_url":"https://api.github.com/users/FreeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/FreeCodeCamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp","description":"The https://FreeCodeCamp.com open source codebase and curriculum. Learn to code and help nonprofits.","fork":false,"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","forks_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/forks","keys_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/teams","hooks_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/hooks","issue_events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/events{/number}","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/events","assignees_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/assignees{/user}","branches_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/branches{/branch}","tags_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/tags","blobs_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/refs{/sha}","trees_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/statuses/{sha}","languages_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/languages","stargazers_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/stargazers","contributors_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/contributors","subscribers_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/subscribers","subscription_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/subscription","commits_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/commits{/sha}","git_commits_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/commits{/sha}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/comments{/number}","issue_comment_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments{/number}","contents_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/contents/{+path}","compare_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/merges","archive_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/downloads","issues_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues{/number}","pulls_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls{/number}","milestones_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/milestones{/number}","notifications_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels{/name}","releases_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/releases{/id}","deployments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/deployments","created_at":"2014-12-24T17:49:19Z","updated_at":"2016-06-01T09:59:06Z","pushed_at":"2016-06-01T09:45:10Z","git_url":"git://github.com/FreeCodeCamp/FreeCodeCamp.git","ssh_url":"git@github.com:FreeCodeCamp/FreeCodeCamp.git","clone_url":"https://github.com/FreeCodeCamp/FreeCodeCamp.git","svn_url":"https://github.com/FreeCodeCamp/FreeCodeCamp","homepage":"","size":37281,"stargazers_count":131950,"watchers_count":131950,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4661,"mirror_url":null,"open_issues_count":328,"forks":4661,"open_issues":328,"watchers":131950,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/8891"},"html":{"href":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/8891"},"issue":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/8891"},"comments":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/8891/comments"},"review_comments":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/8891/comments"},"review_comment":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/8891/commits"},"statuses":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/statuses/d981fac42b4c0abfa5c3015bad971abffb0798eb"}}}}
{"actor":{"display_login":"raisedadead"}}