Skip to content

Commit 614fb4c

Browse files
broaden JSTOR reg-ex
1 parent cbd24fd commit 614fb4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/ReadPDFsSupport.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ ReadFirstPages <- function(doc, page.one = TRUE){
127127
#' @keywords internal
128128
#' @noRd
129129
CheckJSTOR <- function(doc1, doc2, file){
130-
ind <- grep('http://www\\.jstor\\.org/stable/([0-9]+)', doc1,
130+
ind <- grep('https?://www\\.jstor\\.org/stable/([0-9]+)', doc1,
131131
useBytes = TRUE)[1]
132132
if (!is.na(ind)){
133133
res <- try(GetJSTOR(doc1), TRUE)
@@ -138,7 +138,7 @@ CheckJSTOR <- function(doc1, doc2, file){
138138
res$url <- paste0('https://www.jstor.org/stable/', res$eprint)
139139
res$file <- normalizePath(file)
140140

141-
}else if (length(ind <- grep('http://links.jstor.org/sici', doc1,
141+
}else if (length(ind <- grep('https?://links.jstor.org/sici', doc1,
142142
useBytes = TRUE))){
143143
## old format for JSTOR papers
144144
res <- try(GetJSTOR(doc1), TRUE)

0 commit comments

Comments
 (0)