Skip to content

Commit

Permalink
🐛 (parsers): Fix pdfLink from eprint
Browse files Browse the repository at this point in the history
Remove `\` eg. `a\_b.pdf` -> `a_b.pdf`
  • Loading branch information
vict0rsch committed Dec 1, 2023
1 parent 6d0326b commit b3b2c27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/js/utils/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ const makeOUPPaper = async (url) => {
const key = citationKey;
const num = url.split("https://academic.oup.com/")[1].split("/").slice(2).join("");
const id = `OUP-${year}_${miniHash(num)}`;
const pdfLink = eprint ?? url;
const pdfLink = eprint?.replaceAll("\\", "") ?? url;

return { author, bibtex, id, key, note, pdfLink, title, venue, year, doi };
};
Expand Down
Loading

0 comments on commit b3b2c27

Please sign in to comment.