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

Parse byline fix #132

Merged
merged 8 commits into from
Jan 10, 2016
Merged

Conversation

davecrumbacher
Copy link

I found a couple cases where the author was not getting extracted correctly:

  • If the name has a period in it, e.g. Tyler G. Jones, it drops the last name (Tyler G.)
  • If the name is hyphenated, e.g. Jessica Silver-Greenberg, it would not capitalize the last name (Jessica Silver-greenberg)

This pull request addresses both of these issues. Thanks.

@davecrumbacher
Copy link
Author

It looks like a test is failing, so I am closing this for now. Will re-open and include changes to tests after I've resolved it.

@codelucas
Copy link
Owner

👍 Thanks for the PR anyways, looking forward to the updated version

@davecrumbacher
Copy link
Author

Okay, I have made some more changes, including the tests. I modified the sample HTML file to include a more complex list of authors. The tests are passing, but please comment if you see any potential troubles with this approach.

codelucas added a commit that referenced this pull request Jan 10, 2016
@codelucas codelucas merged commit 6858559 into codelucas:master Jan 10, 2016
@codelucas
Copy link
Owner

Merged finally, thanks for this!

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.

2 participants