Skip to content

Commit

Permalink
🐛 (parsers): Use noParamUrl for springer id matching
Browse files Browse the repository at this point in the history
  • Loading branch information
vict0rsch committed Nov 27, 2023
1 parent c572fe2 commit eae864e
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/paper.js
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ const parseIdFromUrl = async (url, tab = null) => {
}
type = "content/pdf";
}
let doi = url.split(`/${type}/`)[1].split("?")[0].replace(".pdf", "");
let doi = noParamUrl(url).split(`/${type}/`)[1].replace(".pdf", "");
idForUrl = findPaperForProperty(papers, "springer", miniHash(doi));
} else if (is.aps) {
const [journal, type] = parseUrl(url.split("#")[0])
Expand Down
Loading

0 comments on commit eae864e

Please sign in to comment.