Skip to content

Commit 0983872

Browse files
authored
fix: remove slashes from journal abbreviation (#70)
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn> Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>
1 parent f5655e0 commit 0983872

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wenxian/reference.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def journal_abbr(self) -> str | None:
100100
# special case
101101
journal_title = journal_title.replace("Npj", "npj")
102102
abbr = abbreviator(journal_title, remove_part=True)
103+
# remove slash in the abbr
104+
abbr = abbr.replace("/", "")
103105
# workaround to fix the missing E, e.g. Phys. Rev. E
104106
# https://github.com/pierre-24/pyiso4/issues/13
105107
# Example: 10.1103/PhysRevE.108.055310

0 commit comments

Comments
 (0)