Skip to content

Commit b3b2c27

Browse files
committed
🐛 (parsers): Fix pdfLink from eprint
Remove `\` eg. `a\_b.pdf` -> `a_b.pdf`
1 parent 6d0326b commit b3b2c27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/shared/js/utils/parsers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ const makeOUPPaper = async (url) => {
14581458
const key = citationKey;
14591459
const num = url.split("https://academic.oup.com/")[1].split("/").slice(2).join("");
14601460
const id = `OUP-${year}_${miniHash(num)}`;
1461-
const pdfLink = eprint ?? url;
1461+
const pdfLink = eprint?.replaceAll("\\", "") ?? url;
14621462

14631463
return { author, bibtex, id, key, note, pdfLink, title, venue, year, doi };
14641464
};

0 commit comments

Comments
 (0)