{"action":"created","comment":{"url":"https://api.github.com/repos/beautify-web/js-beautify/pulls/comments/24361870","id":24361870,"diff_hunk":"@@ -62,8 +62,8 @@ function run_javascript_tests(test_obj, Urlencoded, js_beautify, html_beautify,\n         // }\n \n         if (opts.indent_size === 4 && input) {\n-            wrapped_input = '{\\n' + input.replace(/^(.+)$/mg, '    $1') + '\\n    foo = bar;\\n}';\n-            wrapped_expectation = '{\\n' + expectation.replace(/^(.+)$/mg, '    $1') + '\\n    foo = bar;\\n}';\n+            wrapped_input = '{\\n' + input.trim().replace(/^(.+)$/mg, '    $1') + '\\n    foo = bar;\\n}';","path":"test/template/node-javascript.mustache","position":6,"original_position":6,"commit_id":"b30505d1ea42be18c88edf04c1d72a9b3afaf7c6","original_commit_id":"b30505d1ea42be18c88edf04c1d72a9b3afaf7c6","user":{"login":"bitwiseman","id":1958953,"avatar_url":"https://avatars.githubusercontent.com/u/1958953?v=3","gravatar_id":"","url":"https://api.github.com/users/bitwiseman","html_url":"https://github.com/bitwiseman","followers_url":"https://api.github.com/users/bitwiseman/followers","following_url":"https://api.github.com/users/bitwiseman/following{/other_user}","gists_url":"https://api.github.com/users/bitwiseman/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwiseman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwiseman/subscriptions","organizations_url":"https://api.github.com/users/bitwiseman/orgs","repos_url":"https://api.github.com/users/bitwiseman/repos","events_url":"https://api.github.com/users/bitwiseman/events{/privacy}","received_events_url":"https://api.github.com/users/bitwiseman/received_events","type":"User","site_admin":false},"body":"You really shouldn't put trim here...  It means your tests aren't testing what they intend to.  ","created_at":"2015-02-09T20:23:37Z","updated_at":"2015-02-09T20:23:37Z","html_url":"https://github.com/beautify-web/js-beautify/pull/620#discussion_r24361870","pull_request_url":"https://api.github.com/repos/beautify-web/js-beautify/pulls/620","_links":{"self":{"href":"https://api.github.com/repos/beautify-web/js-beautify/pulls/comments/24361870"},"html":{"href":"https://github.com/beautify-web/js-beautify/pull/620#discussion_r24361870"},"pull_request":{"href":"https://api.github.com/repos/beautify-web/js-beautify/pulls/620"}}},"pull_request":{"url":"https://api.github.com/repos/beautify-web/js-beautify/pulls/620","id":28842731,"html_url":"https://github.com/beautify-web/js-beautify/pull/620","diff_url":"https://github.com/beautify-web/js-beautify/pull/620.diff","patch_url":"https://github.com/beautify-web/js-beautify/pull/620.patch","issue_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/620","number":620,"state":"open","locked":false,"title":"Fixing the issue #598","user":{"login":"websiddu","id":968912,"avatar_url":"https://avatars.githubusercontent.com/u/968912?v=3","gravatar_id":"","url":"https://api.github.com/users/websiddu","html_url":"https://github.com/websiddu","followers_url":"https://api.github.com/users/websiddu/followers","following_url":"https://api.github.com/users/websiddu/following{/other_user}","gists_url":"https://api.github.com/users/websiddu/gists{/gist_id}","starred_url":"https://api.github.com/users/websiddu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websiddu/subscriptions","organizations_url":"https://api.github.com/users/websiddu/orgs","repos_url":"https://api.github.com/users/websiddu/repos","events_url":"https://api.github.com/users/websiddu/events{/privacy}","received_events_url":"https://api.github.com/users/websiddu/received_events","type":"User","site_admin":false},"body":"Requested to review this commit, if you are ok with this I will port this to python also. ","created_at":"2015-02-06T21:18:36Z","updated_at":"2015-02-09T20:23:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45f7792b793bd7a756653cee4893c1fff279f86f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/beautify-web/js-beautify/pulls/620/commits","review_comments_url":"https://api.github.com/repos/beautify-web/js-beautify/pulls/620/comments","review_comment_url":"https://api.github.com/repos/beautify-web/js-beautify/pulls/comments/{number}","comments_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/620/comments","statuses_url":"https://api.github.com/repos/beautify-web/js-beautify/statuses/b30505d1ea42be18c88edf04c1d72a9b3afaf7c6","head":{"label":"websiddu:master","ref":"master","sha":"b30505d1ea42be18c88edf04c1d72a9b3afaf7c6","user":{"login":"websiddu","id":968912,"avatar_url":"https://avatars.githubusercontent.com/u/968912?v=3","gravatar_id":"","url":"https://api.github.com/users/websiddu","html_url":"https://github.com/websiddu","followers_url":"https://api.github.com/users/websiddu/followers","following_url":"https://api.github.com/users/websiddu/following{/other_user}","gists_url":"https://api.github.com/users/websiddu/gists{/gist_id}","starred_url":"https://api.github.com/users/websiddu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websiddu/subscriptions","organizations_url":"https://api.github.com/users/websiddu/orgs","repos_url":"https://api.github.com/users/websiddu/repos","events_url":"https://api.github.com/users/websiddu/events{/privacy}","received_events_url":"https://api.github.com/users/websiddu/received_events","type":"User","site_admin":false},"repo":{"id":30216362,"name":"js-beautify","full_name":"websiddu/js-beautify","owner":{"login":"websiddu","id":968912,"avatar_url":"https://avatars.githubusercontent.com/u/968912?v=3","gravatar_id":"","url":"https://api.github.com/users/websiddu","html_url":"https://github.com/websiddu","followers_url":"https://api.github.com/users/websiddu/followers","following_url":"https://api.github.com/users/websiddu/following{/other_user}","gists_url":"https://api.github.com/users/websiddu/gists{/gist_id}","starred_url":"https://api.github.com/users/websiddu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websiddu/subscriptions","organizations_url":"https://api.github.com/users/websiddu/orgs","repos_url":"https://api.github.com/users/websiddu/repos","events_url":"https://api.github.com/users/websiddu/events{/privacy}","received_events_url":"https://api.github.com/users/websiddu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/websiddu/js-beautify","description":"Beautifier for javascript","fork":true,"url":"https://api.github.com/repos/websiddu/js-beautify","forks_url":"https://api.github.com/repos/websiddu/js-beautify/forks","keys_url":"https://api.github.com/repos/websiddu/js-beautify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/websiddu/js-beautify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/websiddu/js-beautify/teams","hooks_url":"https://api.github.com/repos/websiddu/js-beautify/hooks","issue_events_url":"https://api.github.com/repos/websiddu/js-beautify/issues/events{/number}","events_url":"https://api.github.com/repos/websiddu/js-beautify/events","assignees_url":"https://api.github.com/repos/websiddu/js-beautify/assignees{/user}","branches_url":"https://api.github.com/repos/websiddu/js-beautify/branches{/branch}","tags_url":"https://api.github.com/repos/websiddu/js-beautify/tags","blobs_url":"https://api.github.com/repos/websiddu/js-beautify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/websiddu/js-beautify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/websiddu/js-beautify/git/refs{/sha}","trees_url":"https://api.github.com/repos/websiddu/js-beautify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/websiddu/js-beautify/statuses/{sha}","languages_url":"https://api.github.com/repos/websiddu/js-beautify/languages","stargazers_url":"https://api.github.com/repos/websiddu/js-beautify/stargazers","contributors_url":"https://api.github.com/repos/websiddu/js-beautify/contributors","subscribers_url":"https://api.github.com/repos/websiddu/js-beautify/subscribers","subscription_url":"https://api.github.com/repos/websiddu/js-beautify/subscription","commits_url":"https://api.github.com/repos/websiddu/js-beautify/commits{/sha}","git_commits_url":"https://api.github.com/repos/websiddu/js-beautify/git/commits{/sha}","comments_url":"https://api.github.com/repos/websiddu/js-beautify/comments{/number}","issue_comment_url":"https://api.github.com/repos/websiddu/js-beautify/issues/comments/{number}","contents_url":"https://api.github.com/repos/websiddu/js-beautify/contents/{+path}","compare_url":"https://api.github.com/repos/websiddu/js-beautify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/websiddu/js-beautify/merges","archive_url":"https://api.github.com/repos/websiddu/js-beautify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/websiddu/js-beautify/downloads","issues_url":"https://api.github.com/repos/websiddu/js-beautify/issues{/number}","pulls_url":"https://api.github.com/repos/websiddu/js-beautify/pulls{/number}","milestones_url":"https://api.github.com/repos/websiddu/js-beautify/milestones{/number}","notifications_url":"https://api.github.com/repos/websiddu/js-beautify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/websiddu/js-beautify/labels{/name}","releases_url":"https://api.github.com/repos/websiddu/js-beautify/releases{/id}","created_at":"2015-02-03T00:24:41Z","updated_at":"2015-02-06T21:27:09Z","pushed_at":"2015-02-06T21:27:09Z","git_url":"git://github.com/websiddu/js-beautify.git","ssh_url":"git@github.com:websiddu/js-beautify.git","clone_url":"https://github.com/websiddu/js-beautify.git","svn_url":"https://github.com/websiddu/js-beautify","homepage":"http://jsbeautifier.org/","size":3341,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"beautify-web:master","ref":"master","sha":"d4124fc1ed24cd5a6211db4849a61457a1c29b65","user":{"login":"beautify-web","id":6538164,"avatar_url":"https://avatars.githubusercontent.com/u/6538164?v=3","gravatar_id":"","url":"https://api.github.com/users/beautify-web","html_url":"https://github.com/beautify-web","followers_url":"https://api.github.com/users/beautify-web/followers","following_url":"https://api.github.com/users/beautify-web/following{/other_user}","gists_url":"https://api.github.com/users/beautify-web/gists{/gist_id}","starred_url":"https://api.github.com/users/beautify-web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beautify-web/subscriptions","organizations_url":"https://api.github.com/users/beautify-web/orgs","repos_url":"https://api.github.com/users/beautify-web/repos","events_url":"https://api.github.com/users/beautify-web/events{/privacy}","received_events_url":"https://api.github.com/users/beautify-web/received_events","type":"Organization","site_admin":false},"repo":{"id":84822,"name":"js-beautify","full_name":"beautify-web/js-beautify","owner":{"login":"beautify-web","id":6538164,"avatar_url":"https://avatars.githubusercontent.com/u/6538164?v=3","gravatar_id":"","url":"https://api.github.com/users/beautify-web","html_url":"https://github.com/beautify-web","followers_url":"https://api.github.com/users/beautify-web/followers","following_url":"https://api.github.com/users/beautify-web/following{/other_user}","gists_url":"https://api.github.com/users/beautify-web/gists{/gist_id}","starred_url":"https://api.github.com/users/beautify-web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beautify-web/subscriptions","organizations_url":"https://api.github.com/users/beautify-web/orgs","repos_url":"https://api.github.com/users/beautify-web/repos","events_url":"https://api.github.com/users/beautify-web/events{/privacy}","received_events_url":"https://api.github.com/users/beautify-web/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/beautify-web/js-beautify","description":"Beautifier for javascript","fork":false,"url":"https://api.github.com/repos/beautify-web/js-beautify","forks_url":"https://api.github.com/repos/beautify-web/js-beautify/forks","keys_url":"https://api.github.com/repos/beautify-web/js-beautify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beautify-web/js-beautify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beautify-web/js-beautify/teams","hooks_url":"https://api.github.com/repos/beautify-web/js-beautify/hooks","issue_events_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/events{/number}","events_url":"https://api.github.com/repos/beautify-web/js-beautify/events","assignees_url":"https://api.github.com/repos/beautify-web/js-beautify/assignees{/user}","branches_url":"https://api.github.com/repos/beautify-web/js-beautify/branches{/branch}","tags_url":"https://api.github.com/repos/beautify-web/js-beautify/tags","blobs_url":"https://api.github.com/repos/beautify-web/js-beautify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beautify-web/js-beautify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beautify-web/js-beautify/git/refs{/sha}","trees_url":"https://api.github.com/repos/beautify-web/js-beautify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beautify-web/js-beautify/statuses/{sha}","languages_url":"https://api.github.com/repos/beautify-web/js-beautify/languages","stargazers_url":"https://api.github.com/repos/beautify-web/js-beautify/stargazers","contributors_url":"https://api.github.com/repos/beautify-web/js-beautify/contributors","subscribers_url":"https://api.github.com/repos/beautify-web/js-beautify/subscribers","subscription_url":"https://api.github.com/repos/beautify-web/js-beautify/subscription","commits_url":"https://api.github.com/repos/beautify-web/js-beautify/commits{/sha}","git_commits_url":"https://api.github.com/repos/beautify-web/js-beautify/git/commits{/sha}","comments_url":"https://api.github.com/repos/beautify-web/js-beautify/comments{/number}","issue_comment_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/comments/{number}","contents_url":"https://api.github.com/repos/beautify-web/js-beautify/contents/{+path}","compare_url":"https://api.github.com/repos/beautify-web/js-beautify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beautify-web/js-beautify/merges","archive_url":"https://api.github.com/repos/beautify-web/js-beautify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beautify-web/js-beautify/downloads","issues_url":"https://api.github.com/repos/beautify-web/js-beautify/issues{/number}","pulls_url":"https://api.github.com/repos/beautify-web/js-beautify/pulls{/number}","milestones_url":"https://api.github.com/repos/beautify-web/js-beautify/milestones{/number}","notifications_url":"https://api.github.com/repos/beautify-web/js-beautify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beautify-web/js-beautify/labels{/name}","releases_url":"https://api.github.com/repos/beautify-web/js-beautify/releases{/id}","created_at":"2008-12-04T06:35:54Z","updated_at":"2015-02-09T18:02:46Z","pushed_at":"2015-02-03T18:47:11Z","git_url":"git://github.com/beautify-web/js-beautify.git","ssh_url":"git@github.com:beautify-web/js-beautify.git","clone_url":"https://github.com/beautify-web/js-beautify.git","svn_url":"https://github.com/beautify-web/js-beautify","homepage":"http://jsbeautifier.org/","size":6411,"stargazers_count":2601,"watchers_count":2601,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":542,"mirror_url":null,"open_issues_count":155,"forks":542,"open_issues":155,"watchers":2601,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/beautify-web/js-beautify/pulls/620"},"html":{"href":"https://github.com/beautify-web/js-beautify/pull/620"},"issue":{"href":"https://api.github.com/repos/beautify-web/js-beautify/issues/620"},"comments":{"href":"https://api.github.com/repos/beautify-web/js-beautify/issues/620/comments"},"review_comments":{"href":"https://api.github.com/repos/beautify-web/js-beautify/pulls/620/comments"},"review_comment":{"href":"https://api.github.com/repos/beautify-web/js-beautify/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/beautify-web/js-beautify/pulls/620/commits"},"statuses":{"href":"https://api.github.com/repos/beautify-web/js-beautify/statuses/b30505d1ea42be18c88edf04c1d72a9b3afaf7c6"}}}}