{"action":"opened","number":364,"pull_request":{"url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/364","id":160188216,"html_url":"https://github.com/Chalarangelo/30-seconds-of-code/pull/364","diff_url":"https://github.com/Chalarangelo/30-seconds-of-code/pull/364.diff","patch_url":"https://github.com/Chalarangelo/30-seconds-of-code/pull/364.patch","issue_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/364","number":364,"state":"open","locked":false,"title":"[ENHANCEMENT] Handle CRLF for splitting lines on Windows","user":{"login":"sudo-suhas","id":22251956,"avatar_url":"https://avatars2.githubusercontent.com/u/22251956?v=4","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n<!--- Add the prefix [FIX: #(issue number)], [FEATURE] or [ENHANCEMENT] to the Title -->\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\nThis updates the pattern for splitting lines so that it is Windows compatible. See https://stackoverflow.com/questions/21895233/how-in-node-to-split-string-by-newline-n.\r\n\r\n\r\n## What does your PR belong to?\r\n- [ ] Website\r\n- [X] Snippets\r\n- [ ] General / Things regarding the repository (like CI Integration)\r\n\r\n## Types of changes\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [X] Enhancement (non-breaking improvement of a snippet)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [X] My code follows the code style of this project.\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n- [X] I have checked that the changes are working properly\r\n- [X] I have checked that there isn't any PR doing the same\r\n- [X] I have read the **CONTRIBUTING** document.\r\n","created_at":"2017-12-27T03:17:33Z","updated_at":"2017-12-27T03:17:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/364/commits","review_comments_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/364/comments","review_comment_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/364/comments","statuses_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/statuses/4ac1d97503efcac5623f87aaa6308f19169cfd36","head":{"label":"sudo-suhas:win-compat-read-lines","ref":"win-compat-read-lines","sha":"4ac1d97503efcac5623f87aaa6308f19169cfd36","user":{"login":"sudo-suhas","id":22251956,"avatar_url":"https://avatars2.githubusercontent.com/u/22251956?v=4","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"repo":{"id":115475290,"name":"30-seconds-of-code","full_name":"sudo-suhas/30-seconds-of-code","owner":{"login":"sudo-suhas","id":22251956,"avatar_url":"https://avatars2.githubusercontent.com/u/22251956?v=4","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sudo-suhas/30-seconds-of-code","description":"Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.","fork":true,"url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code","forks_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/forks","keys_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/teams","hooks_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/hooks","issue_events_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/issues/events{/number}","events_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/events","assignees_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/assignees{/user}","branches_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/branches{/branch}","tags_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/tags","blobs_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/statuses/{sha}","languages_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/languages","stargazers_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/stargazers","contributors_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/contributors","subscribers_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/subscribers","subscription_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/subscription","commits_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/contents/{+path}","compare_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/merges","archive_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/downloads","issues_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/issues{/number}","pulls_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/pulls{/number}","milestones_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/milestones{/number}","notifications_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/labels{/name}","releases_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/releases{/id}","deployments_url":"https://api.github.com/repos/sudo-suhas/30-seconds-of-code/deployments","created_at":"2017-12-27T03:02:48Z","updated_at":"2017-12-27T03:02:50Z","pushed_at":"2017-12-27T03:13:30Z","git_url":"git://github.com/sudo-suhas/30-seconds-of-code.git","ssh_url":"git@github.com:sudo-suhas/30-seconds-of-code.git","clone_url":"https://github.com/sudo-suhas/30-seconds-of-code.git","svn_url":"https://github.com/sudo-suhas/30-seconds-of-code","homepage":"https://30secondsofcode.org/","size":1799,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Chalarangelo:master","ref":"master","sha":"71a0c93cafe370c38bd3c4af0d04250a083ad012","user":{"login":"Chalarangelo","id":8281875,"avatar_url":"https://avatars2.githubusercontent.com/u/8281875?v=4","gravatar_id":"","url":"https://api.github.com/users/Chalarangelo","html_url":"https://github.com/Chalarangelo","followers_url":"https://api.github.com/users/Chalarangelo/followers","following_url":"https://api.github.com/users/Chalarangelo/following{/other_user}","gists_url":"https://api.github.com/users/Chalarangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/Chalarangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chalarangelo/subscriptions","organizations_url":"https://api.github.com/users/Chalarangelo/orgs","repos_url":"https://api.github.com/users/Chalarangelo/repos","events_url":"https://api.github.com/users/Chalarangelo/events{/privacy}","received_events_url":"https://api.github.com/users/Chalarangelo/received_events","type":"User","site_admin":false},"repo":{"id":112507086,"name":"30-seconds-of-code","full_name":"Chalarangelo/30-seconds-of-code","owner":{"login":"Chalarangelo","id":8281875,"avatar_url":"https://avatars2.githubusercontent.com/u/8281875?v=4","gravatar_id":"","url":"https://api.github.com/users/Chalarangelo","html_url":"https://github.com/Chalarangelo","followers_url":"https://api.github.com/users/Chalarangelo/followers","following_url":"https://api.github.com/users/Chalarangelo/following{/other_user}","gists_url":"https://api.github.com/users/Chalarangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/Chalarangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chalarangelo/subscriptions","organizations_url":"https://api.github.com/users/Chalarangelo/orgs","repos_url":"https://api.github.com/users/Chalarangelo/repos","events_url":"https://api.github.com/users/Chalarangelo/events{/privacy}","received_events_url":"https://api.github.com/users/Chalarangelo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chalarangelo/30-seconds-of-code","description":"Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.","fork":false,"url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code","forks_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/forks","keys_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/teams","hooks_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/hooks","issue_events_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/events{/number}","events_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/events","assignees_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/assignees{/user}","branches_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/branches{/branch}","tags_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/tags","blobs_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/statuses/{sha}","languages_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/languages","stargazers_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/stargazers","contributors_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/contributors","subscribers_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/subscribers","subscription_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/subscription","commits_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/contents/{+path}","compare_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/merges","archive_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/downloads","issues_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues{/number}","pulls_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls{/number}","milestones_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/milestones{/number}","notifications_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/labels{/name}","releases_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/releases{/id}","deployments_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/deployments","created_at":"2017-11-29T17:35:03Z","updated_at":"2017-12-27T03:16:07Z","pushed_at":"2017-12-27T01:14:59Z","git_url":"git://github.com/Chalarangelo/30-seconds-of-code.git","ssh_url":"git@github.com:Chalarangelo/30-seconds-of-code.git","clone_url":"https://github.com/Chalarangelo/30-seconds-of-code.git","svn_url":"https://github.com/Chalarangelo/30-seconds-of-code","homepage":"https://30secondsofcode.org/","size":1799,"stargazers_count":12486,"watchers_count":12486,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1087,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"cc0-1.0","name":"Creative Commons Zero v1.0 Universal","spdx_id":"CC0-1.0","url":"https://api.github.com/licenses/cc0-1.0"},"forks":1087,"open_issues":12,"watchers":12486,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/364"},"html":{"href":"https://github.com/Chalarangelo/30-seconds-of-code/pull/364"},"issue":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/364"},"comments":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/364/comments"},"review_comments":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/364/comments"},"review_comment":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/364/commits"},"statuses":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/statuses/4ac1d97503efcac5623f87aaa6308f19169cfd36"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":4,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"sudo-suhas"}}