{"action":"closed","number":27,"pull_request":{"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls/27","id":36349477,"html_url":"https://github.com/activeprospect/leadconduit-integration-lendio/pull/27","diff_url":"https://github.com/activeprospect/leadconduit-integration-lendio/pull/27.diff","patch_url":"https://github.com/activeprospect/leadconduit-integration-lendio/pull/27.patch","issue_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues/27","number":27,"state":"closed","locked":false,"title":"Update email parsing","user":{"login":"ros3bud","id":3402403,"avatar_url":"https://avatars.githubusercontent.com/u/3402403?v=3","gravatar_id":"","url":"https://api.github.com/users/ros3bud","html_url":"https://github.com/ros3bud","followers_url":"https://api.github.com/users/ros3bud/followers","following_url":"https://api.github.com/users/ros3bud/following{/other_user}","gists_url":"https://api.github.com/users/ros3bud/gists{/gist_id}","starred_url":"https://api.github.com/users/ros3bud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros3bud/subscriptions","organizations_url":"https://api.github.com/users/ros3bud/orgs","repos_url":"https://api.github.com/users/ros3bud/repos","events_url":"https://api.github.com/users/ros3bud/events{/privacy}","received_events_url":"https://api.github.com/users/ros3bud/received_events","type":"User","site_admin":false},"body":"@cgrayson, I needed to revert to the for statement to add some more parsing based on the value. This is because different values are passed for email depending on the error. LGTY? ","created_at":"2015-05-27T21:15:07Z","updated_at":"2015-05-28T18:00:46Z","closed_at":"2015-05-28T18:00:46Z","merged_at":"2015-05-28T18:00:46Z","merge_commit_sha":"e5087fc7878cd3645dbdcda16a3bb489dbcf2731","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls/27/commits","review_comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls/27/comments","review_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues/27/comments","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/statuses/590b15e0f7f0cc1c6ab33e127e7d97831620802b","head":{"label":"activeprospect:update_email_parsing","ref":"update_email_parsing","sha":"590b15e0f7f0cc1c6ab33e127e7d97831620802b","user":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"repo":{"id":28639392,"name":"leadconduit-integration-lendio","full_name":"activeprospect/leadconduit-integration-lendio","owner":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activeprospect/leadconduit-integration-lendio","description":"","fork":false,"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio","forks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/forks","keys_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/teams","hooks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/hooks","issue_events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues/events{/number}","events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/events","assignees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/assignees{/user}","branches_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/branches{/branch}","tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/tags","blobs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/statuses/{sha}","languages_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/languages","stargazers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/stargazers","contributors_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/contributors","subscribers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/subscribers","subscription_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/subscription","commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/contents/{+path}","compare_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/merges","archive_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/downloads","issues_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues{/number}","pulls_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls{/number}","milestones_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/milestones{/number}","notifications_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/labels{/name}","releases_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/releases{/id}","created_at":"2014-12-30T17:33:00Z","updated_at":"2015-04-30T15:34:03Z","pushed_at":"2015-05-28T18:00:46Z","git_url":"git://github.com/activeprospect/leadconduit-integration-lendio.git","ssh_url":"git@github.com:activeprospect/leadconduit-integration-lendio.git","clone_url":"https://github.com/activeprospect/leadconduit-integration-lendio.git","svn_url":"https://github.com/activeprospect/leadconduit-integration-lendio","homepage":null,"size":940,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"activeprospect:master","ref":"master","sha":"594487ef8093f2e2ab1e6041bef25b97d95d6516","user":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"repo":{"id":28639392,"name":"leadconduit-integration-lendio","full_name":"activeprospect/leadconduit-integration-lendio","owner":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activeprospect/leadconduit-integration-lendio","description":"","fork":false,"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio","forks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/forks","keys_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/teams","hooks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/hooks","issue_events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues/events{/number}","events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/events","assignees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/assignees{/user}","branches_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/branches{/branch}","tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/tags","blobs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/statuses/{sha}","languages_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/languages","stargazers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/stargazers","contributors_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/contributors","subscribers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/subscribers","subscription_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/subscription","commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/contents/{+path}","compare_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/merges","archive_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/downloads","issues_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues{/number}","pulls_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls{/number}","milestones_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/milestones{/number}","notifications_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/labels{/name}","releases_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/releases{/id}","created_at":"2014-12-30T17:33:00Z","updated_at":"2015-04-30T15:34:03Z","pushed_at":"2015-05-28T18:00:46Z","git_url":"git://github.com/activeprospect/leadconduit-integration-lendio.git","ssh_url":"git@github.com:activeprospect/leadconduit-integration-lendio.git","clone_url":"https://github.com/activeprospect/leadconduit-integration-lendio.git","svn_url":"https://github.com/activeprospect/leadconduit-integration-lendio","homepage":null,"size":940,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls/27"},"html":{"href":"https://github.com/activeprospect/leadconduit-integration-lendio/pull/27"},"issue":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues/27"},"comments":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-lendio/statuses/590b15e0f7f0cc1c6ab33e127e7d97831620802b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ros3bud","id":3402403,"avatar_url":"https://avatars.githubusercontent.com/u/3402403?v=3","gravatar_id":"","url":"https://api.github.com/users/ros3bud","html_url":"https://github.com/ros3bud","followers_url":"https://api.github.com/users/ros3bud/followers","following_url":"https://api.github.com/users/ros3bud/following{/other_user}","gists_url":"https://api.github.com/users/ros3bud/gists{/gist_id}","starred_url":"https://api.github.com/users/ros3bud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros3bud/subscriptions","organizations_url":"https://api.github.com/users/ros3bud/orgs","repos_url":"https://api.github.com/users/ros3bud/repos","events_url":"https://api.github.com/users/ros3bud/events{/privacy}","received_events_url":"https://api.github.com/users/ros3bud/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":2,"additions":26,"deletions":12,"changed_files":2}}