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

split_multiple_persons_names() bug #475

Closed
nschloe opened this issue Mar 10, 2024 · 1 comment · Fixed by #476
Closed

split_multiple_persons_names() bug #475

nschloe opened this issue Mar 10, 2024 · 1 comment · Fixed by #476
Labels

Comments

@nschloe
Copy link

nschloe commented Mar 10, 2024

split_multiple_persons_names() doesn't give the correct splitting if there's a one-character middle name, e.g., Doe, John A.

MWE:

from bibtexparser.middlewares.names import split_multiple_persons_names

# okay:
string = "Doe, John and Doe, Jane"
print(split_multiple_persons_names(string))

# okay:
string = "Doe, John A. and Doe, Jane"
print(split_multiple_persons_names(string))

# fail:
string = "Doe, John A and Doe, Jane"
print(split_multiple_persons_names(string))
['Doe, John', 'Doe, Jane']
['Doe, John A.', 'Doe, Jane']
['Doe, John A and Doe, Jane']

This is with v2.0.0b7.

@tdegeus
Copy link
Collaborator

tdegeus commented Mar 14, 2024

Thanks for reporting! This is indeed a bug. Should be fixed in #476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants