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

bug: incorrect handling of lastnames with whitespaces #167

Open
CheariX opened this issue Apr 25, 2024 · 0 comments
Open

bug: incorrect handling of lastnames with whitespaces #167

CheariX opened this issue Apr 25, 2024 · 0 comments

Comments

@CheariX
Copy link

CheariX commented Apr 25, 2024

One of my co-author's lastname could not be correctly parsed due to whitespaces.
I'm referring to this Bibtex entry.
The BibTeX was condensed to the essential components as demonstrated in the code example provided below.

require 'bibtex'

b = BibTeX.parse <<-END
@inproceedings{10.1145/3319535.3339812,
author = {Mladenov, Vladislav and Mainka, Christian and Meyer zu Selhausen, Karsten and Grothe, Martin and Schwenk, J\"{o}rg},
}
END

if b['10.1145/3319535.3339812'].author[2].last == "Meyer zu Selhausen"
    puts "Correct."
   else
    puts "Incorrect. Should be: 'Meyer zu Selhausen'. Current: '#{b['10.1145/3319535.3339812'].author[2].last}'"
   end

Output:

Incorrect. Should be: 'Meyer zu Selhausen'. Current: 'Selhausen'
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

No branches or pull requests

1 participant