pierre-24 / pyiso4

Implementation of the ISO 4 standard for journal titles abbreviations in Python.
MIT License
4 stars 2 forks source link

Fix IndexError when abbrv is longer than original; Close #12 #14

Closed klb2 closed 2 months ago

klb2 commented 2 months ago

In some cases, there is a mismatch between abbreviation and original, where a dot is added to an unabbreviated word, e.g., "Control". If this occurs, the dot is removed and the abbreviation is reduced to the length of the original word.

This closes #12

pierre-24 commented 2 months ago

Fine by me, although having an actual journal with "review." is a bit surprising. For example, Phys. Rev. A, that you included in your test, do not include a dot at the end of its name.