Skip to content

Commit 65f42a3

Browse files
broaden pattern to both old & new DOI-URLs
1 parent f406a6d commit 65f42a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/GetDOIs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ GetDOIs <- function(bib){
5050
match.str <- paste0(missing.dois.pos[matches], collapse = ", ")
5151
message(gettextf("Matches for entries at positions %s.",
5252
match.str))
53-
bib$doi[missing.dois.pos[matches]] <- sub("https://doi.org/", "",
53+
bib$doi[missing.dois.pos[matches]] <- sub("https?://(dx\\.)?doi.org/", "",
5454
vapply(json.res[[1L]], "[[",
5555
"",
5656
"doi")[matches],

0 commit comments

Comments
 (0)