Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the name extraction when empty strings are provided #3

Merged
merged 3 commits into from
Sep 22, 2017

Conversation

morenobryan
Copy link

@morenobryan morenobryan commented Sep 22, 2017

@@ -65,7 +65,7 @@ def self.extract_email_address(full_address)

def self.extract_name(full_address)
full_address = full_address.strip
name = full_address&.split('<')&.first&.strip
name = full_address.split('<').first&.strip

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please provide some specs to get the error fix

@morenobryan morenobryan merged commit a05ef9f into master Sep 22, 2017
@morenobryan morenobryan deleted the bm-fix-empty-address branch September 22, 2017 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants