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 and improve BibTeX parsing #2020

Merged
merged 3 commits into from
Dec 7, 2019
Merged

Conversation

zuphilip
Copy link
Contributor

  • In some cases the rawValue was undefined which caused
    a problem in the author field.
  • Handle electronic as webpage
  • Skip preamble
  • Improve inline documentation

- In some cases the rawValue was undefined which caused
a problem in the author field.
- Handle electronic as webpage
- Skip preamble
- Improve inline documentation
Copy link
Contributor Author

@zuphilip zuphilip left a comment

Choose a reason for hiding this comment

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

I tested this with the long bibtex test file from https://github.com/citation-js/bibtex-parser-experiments/blob/master/test/files/long.bib and everything worked well. Now, we are importing all 3345 entries and not other side effect was detected during the import. I will merge this the next days, if no one objects.

Moreover, allow special characters like colon
or underscore to be part of the string name.
@zuphilip zuphilip added the Improvements Pull requests that are improving existing translators label Oct 14, 2019
@adam3smith
Copy link
Collaborator

This looks good to me, but leaving for you to merge, not having read the code closely enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvements Pull requests that are improving existing translators
Development

Successfully merging this pull request may close these issues.

None yet

2 participants