{"action":"created","comment":{"url":"https://api.github.com/repos/kpdecker/jsdiff/pulls/comments/43973204","id":43973204,"diff_hunk":"@@ -7,41 +7,40 @@ export function parsePatch(uniDiff, options = {}) {\n     let index = {};\n     list.push(index);\n \n-    // Ignore any leading junk\n+    // Parse diff metadata\n     while (i < diffstr.length) {\n-      if (/^(Index:|diff -r|@@)/.test(diffstr[i])) {\n+      let line = diffstr[i];\n+\n+      // File header found, end parsing diff metadata\n+      if (/^(\\-\\-\\-|\\+\\+\\+|@@)/.test(line)) {","path":"src/patch/parse.js","position":11,"original_position":11,"commit_id":"a4178de3c16a88c2715533bf2e7cafa721a29b3d","original_commit_id":"a4178de3c16a88c2715533bf2e7cafa721a29b3d","user":{"login":"kpdecker","id":196390,"avatar_url":"https://avatars.githubusercontent.com/u/196390?v=3","gravatar_id":"","url":"https://api.github.com/users/kpdecker","html_url":"https://github.com/kpdecker","followers_url":"https://api.github.com/users/kpdecker/followers","following_url":"https://api.github.com/users/kpdecker/following{/other_user}","gists_url":"https://api.github.com/users/kpdecker/gists{/gist_id}","starred_url":"https://api.github.com/users/kpdecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpdecker/subscriptions","organizations_url":"https://api.github.com/users/kpdecker/orgs","repos_url":"https://api.github.com/users/kpdecker/repos","events_url":"https://api.github.com/users/kpdecker/events{/privacy}","received_events_url":"https://api.github.com/users/kpdecker/received_events","type":"User","site_admin":false},"body":"`@@` isn't in the spec is it? This seems to be a change the previous behavior.","created_at":"2015-11-05T03:31:35Z","updated_at":"2015-11-05T03:31:35Z","html_url":"https://github.com/kpdecker/jsdiff/pull/88#discussion_r43973204","pull_request_url":"https://api.github.com/repos/kpdecker/jsdiff/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/kpdecker/jsdiff/pulls/comments/43973204"},"html":{"href":"https://github.com/kpdecker/jsdiff/pull/88#discussion_r43973204"},"pull_request":{"href":"https://api.github.com/repos/kpdecker/jsdiff/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/kpdecker/jsdiff/pulls/88","id":49161335,"html_url":"https://github.com/kpdecker/jsdiff/pull/88","diff_url":"https://github.com/kpdecker/jsdiff/pull/88.diff","patch_url":"https://github.com/kpdecker/jsdiff/pull/88.patch","issue_url":"https://api.github.com/repos/kpdecker/jsdiff/issues/88","number":88,"state":"open","locked":false,"title":"Split diffs based on file headers instead of 'Index:' metadata","user":{"login":"piranna","id":532414,"avatar_url":"https://avatars.githubusercontent.com/u/532414?v=3","gravatar_id":"","url":"https://api.github.com/users/piranna","html_url":"https://github.com/piranna","followers_url":"https://api.github.com/users/piranna/followers","following_url":"https://api.github.com/users/piranna/following{/other_user}","gists_url":"https://api.github.com/users/piranna/gists{/gist_id}","starred_url":"https://api.github.com/users/piranna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piranna/subscriptions","organizations_url":"https://api.github.com/users/piranna/orgs","repos_url":"https://api.github.com/users/piranna/repos","events_url":"https://api.github.com/users/piranna/events{/privacy}","received_events_url":"https://api.github.com/users/piranna/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-29T16:07:16Z","updated_at":"2015-11-05T03:31:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"620f4345342350dc53e2ac688e9c130999dc54e8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kpdecker/jsdiff/pulls/88/commits","review_comments_url":"https://api.github.com/repos/kpdecker/jsdiff/pulls/88/comments","review_comment_url":"https://api.github.com/repos/kpdecker/jsdiff/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kpdecker/jsdiff/issues/88/comments","statuses_url":"https://api.github.com/repos/kpdecker/jsdiff/statuses/a4178de3c16a88c2715533bf2e7cafa721a29b3d","head":{"label":"NodeOS:splitDiffs","ref":"splitDiffs","sha":"a4178de3c16a88c2715533bf2e7cafa721a29b3d","user":{"login":"NodeOS","id":5056162,"avatar_url":"https://avatars.githubusercontent.com/u/5056162?v=3","gravatar_id":"","url":"https://api.github.com/users/NodeOS","html_url":"https://github.com/NodeOS","followers_url":"https://api.github.com/users/NodeOS/followers","following_url":"https://api.github.com/users/NodeOS/following{/other_user}","gists_url":"https://api.github.com/users/NodeOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NodeOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NodeOS/subscriptions","organizations_url":"https://api.github.com/users/NodeOS/orgs","repos_url":"https://api.github.com/users/NodeOS/repos","events_url":"https://api.github.com/users/NodeOS/events{/privacy}","received_events_url":"https://api.github.com/users/NodeOS/received_events","type":"Organization","site_admin":false},"repo":{"id":44300961,"name":"jsdiff","full_name":"NodeOS/jsdiff","owner":{"login":"NodeOS","id":5056162,"avatar_url":"https://avatars.githubusercontent.com/u/5056162?v=3","gravatar_id":"","url":"https://api.github.com/users/NodeOS","html_url":"https://github.com/NodeOS","followers_url":"https://api.github.com/users/NodeOS/followers","following_url":"https://api.github.com/users/NodeOS/following{/other_user}","gists_url":"https://api.github.com/users/NodeOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NodeOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NodeOS/subscriptions","organizations_url":"https://api.github.com/users/NodeOS/orgs","repos_url":"https://api.github.com/users/NodeOS/repos","events_url":"https://api.github.com/users/NodeOS/events{/privacy}","received_events_url":"https://api.github.com/users/NodeOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NodeOS/jsdiff","description":"A javascript text differencing implementation.","fork":true,"url":"https://api.github.com/repos/NodeOS/jsdiff","forks_url":"https://api.github.com/repos/NodeOS/jsdiff/forks","keys_url":"https://api.github.com/repos/NodeOS/jsdiff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NodeOS/jsdiff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NodeOS/jsdiff/teams","hooks_url":"https://api.github.com/repos/NodeOS/jsdiff/hooks","issue_events_url":"https://api.github.com/repos/NodeOS/jsdiff/issues/events{/number}","events_url":"https://api.github.com/repos/NodeOS/jsdiff/events","assignees_url":"https://api.github.com/repos/NodeOS/jsdiff/assignees{/user}","branches_url":"https://api.github.com/repos/NodeOS/jsdiff/branches{/branch}","tags_url":"https://api.github.com/repos/NodeOS/jsdiff/tags","blobs_url":"https://api.github.com/repos/NodeOS/jsdiff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NodeOS/jsdiff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NodeOS/jsdiff/git/refs{/sha}","trees_url":"https://api.github.com/repos/NodeOS/jsdiff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NodeOS/jsdiff/statuses/{sha}","languages_url":"https://api.github.com/repos/NodeOS/jsdiff/languages","stargazers_url":"https://api.github.com/repos/NodeOS/jsdiff/stargazers","contributors_url":"https://api.github.com/repos/NodeOS/jsdiff/contributors","subscribers_url":"https://api.github.com/repos/NodeOS/jsdiff/subscribers","subscription_url":"https://api.github.com/repos/NodeOS/jsdiff/subscription","commits_url":"https://api.github.com/repos/NodeOS/jsdiff/commits{/sha}","git_commits_url":"https://api.github.com/repos/NodeOS/jsdiff/git/commits{/sha}","comments_url":"https://api.github.com/repos/NodeOS/jsdiff/comments{/number}","issue_comment_url":"https://api.github.com/repos/NodeOS/jsdiff/issues/comments{/number}","contents_url":"https://api.github.com/repos/NodeOS/jsdiff/contents/{+path}","compare_url":"https://api.github.com/repos/NodeOS/jsdiff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NodeOS/jsdiff/merges","archive_url":"https://api.github.com/repos/NodeOS/jsdiff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NodeOS/jsdiff/downloads","issues_url":"https://api.github.com/repos/NodeOS/jsdiff/issues{/number}","pulls_url":"https://api.github.com/repos/NodeOS/jsdiff/pulls{/number}","milestones_url":"https://api.github.com/repos/NodeOS/jsdiff/milestones{/number}","notifications_url":"https://api.github.com/repos/NodeOS/jsdiff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NodeOS/jsdiff/labels{/name}","releases_url":"https://api.github.com/repos/NodeOS/jsdiff/releases{/id}","created_at":"2015-10-15T07:30:42Z","updated_at":"2015-10-15T07:30:43Z","pushed_at":"2015-10-29T18:05:55Z","git_url":"git://github.com/NodeOS/jsdiff.git","ssh_url":"git@github.com:NodeOS/jsdiff.git","clone_url":"https://github.com/NodeOS/jsdiff.git","svn_url":"https://github.com/NodeOS/jsdiff","homepage":"","size":417,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"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":"kpdecker:master","ref":"master","sha":"9aefc2a5286e7b30ba24b2e01cc897854e0c75c2","user":{"login":"kpdecker","id":196390,"avatar_url":"https://avatars.githubusercontent.com/u/196390?v=3","gravatar_id":"","url":"https://api.github.com/users/kpdecker","html_url":"https://github.com/kpdecker","followers_url":"https://api.github.com/users/kpdecker/followers","following_url":"https://api.github.com/users/kpdecker/following{/other_user}","gists_url":"https://api.github.com/users/kpdecker/gists{/gist_id}","starred_url":"https://api.github.com/users/kpdecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpdecker/subscriptions","organizations_url":"https://api.github.com/users/kpdecker/orgs","repos_url":"https://api.github.com/users/kpdecker/repos","events_url":"https://api.github.com/users/kpdecker/events{/privacy}","received_events_url":"https://api.github.com/users/kpdecker/received_events","type":"User","site_admin":false},"repo":{"id":1542219,"name":"jsdiff","full_name":"kpdecker/jsdiff","owner":{"login":"kpdecker","id":196390,"avatar_url":"https://avatars.githubusercontent.com/u/196390?v=3","gravatar_id":"","url":"https://api.github.com/users/kpdecker","html_url":"https://github.com/kpdecker","followers_url":"https://api.github.com/users/kpdecker/followers","following_url":"https://api.github.com/users/kpdecker/following{/other_user}","gists_url":"https://api.github.com/users/kpdecker/gists{/gist_id}","starred_url":"https://api.github.com/users/kpdecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpdecker/subscriptions","organizations_url":"https://api.github.com/users/kpdecker/orgs","repos_url":"https://api.github.com/users/kpdecker/repos","events_url":"https://api.github.com/users/kpdecker/events{/privacy}","received_events_url":"https://api.github.com/users/kpdecker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kpdecker/jsdiff","description":"A javascript text differencing implementation.","fork":false,"url":"https://api.github.com/repos/kpdecker/jsdiff","forks_url":"https://api.github.com/repos/kpdecker/jsdiff/forks","keys_url":"https://api.github.com/repos/kpdecker/jsdiff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kpdecker/jsdiff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kpdecker/jsdiff/teams","hooks_url":"https://api.github.com/repos/kpdecker/jsdiff/hooks","issue_events_url":"https://api.github.com/repos/kpdecker/jsdiff/issues/events{/number}","events_url":"https://api.github.com/repos/kpdecker/jsdiff/events","assignees_url":"https://api.github.com/repos/kpdecker/jsdiff/assignees{/user}","branches_url":"https://api.github.com/repos/kpdecker/jsdiff/branches{/branch}","tags_url":"https://api.github.com/repos/kpdecker/jsdiff/tags","blobs_url":"https://api.github.com/repos/kpdecker/jsdiff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kpdecker/jsdiff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kpdecker/jsdiff/git/refs{/sha}","trees_url":"https://api.github.com/repos/kpdecker/jsdiff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kpdecker/jsdiff/statuses/{sha}","languages_url":"https://api.github.com/repos/kpdecker/jsdiff/languages","stargazers_url":"https://api.github.com/repos/kpdecker/jsdiff/stargazers","contributors_url":"https://api.github.com/repos/kpdecker/jsdiff/contributors","subscribers_url":"https://api.github.com/repos/kpdecker/jsdiff/subscribers","subscription_url":"https://api.github.com/repos/kpdecker/jsdiff/subscription","commits_url":"https://api.github.com/repos/kpdecker/jsdiff/commits{/sha}","git_commits_url":"https://api.github.com/repos/kpdecker/jsdiff/git/commits{/sha}","comments_url":"https://api.github.com/repos/kpdecker/jsdiff/comments{/number}","issue_comment_url":"https://api.github.com/repos/kpdecker/jsdiff/issues/comments{/number}","contents_url":"https://api.github.com/repos/kpdecker/jsdiff/contents/{+path}","compare_url":"https://api.github.com/repos/kpdecker/jsdiff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kpdecker/jsdiff/merges","archive_url":"https://api.github.com/repos/kpdecker/jsdiff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kpdecker/jsdiff/downloads","issues_url":"https://api.github.com/repos/kpdecker/jsdiff/issues{/number}","pulls_url":"https://api.github.com/repos/kpdecker/jsdiff/pulls{/number}","milestones_url":"https://api.github.com/repos/kpdecker/jsdiff/milestones{/number}","notifications_url":"https://api.github.com/repos/kpdecker/jsdiff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kpdecker/jsdiff/labels{/name}","releases_url":"https://api.github.com/repos/kpdecker/jsdiff/releases{/id}","created_at":"2011-03-29T16:25:28Z","updated_at":"2015-11-04T12:32:30Z","pushed_at":"2015-10-29T18:05:55Z","git_url":"git://github.com/kpdecker/jsdiff.git","ssh_url":"git@github.com:kpdecker/jsdiff.git","clone_url":"https://github.com/kpdecker/jsdiff.git","svn_url":"https://github.com/kpdecker/jsdiff","homepage":"","size":891,"stargazers_count":1027,"watchers_count":1027,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":72,"mirror_url":null,"open_issues_count":5,"forks":72,"open_issues":5,"watchers":1027,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kpdecker/jsdiff/pulls/88"},"html":{"href":"https://github.com/kpdecker/jsdiff/pull/88"},"issue":{"href":"https://api.github.com/repos/kpdecker/jsdiff/issues/88"},"comments":{"href":"https://api.github.com/repos/kpdecker/jsdiff/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/kpdecker/jsdiff/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/kpdecker/jsdiff/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kpdecker/jsdiff/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/kpdecker/jsdiff/statuses/a4178de3c16a88c2715533bf2e7cafa721a29b3d"}}}}