Skip to content

Commit

Permalink
Update R/readepi_helpers.R
Browse files Browse the repository at this point in the history
add `fixed = TRUE` at line 147 in url_check()

Co-authored-by: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com>
  • Loading branch information
Karim-Mane and Bisaloo committed Feb 19, 2024
1 parent 2294b42 commit b24e7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/readepi_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ url_check <- function(base_url) {
null.ok = FALSE)
regex <- "^(https?://)?(www\\.)?([a-z0-9]([a-z0-9]|(\\-[a-z0-9]))*\\.)+[a-z]+$" # nolint: line_length_linter
domain <- strsplit(gsub("^(https?://)?(www\\.)?", "", base_url),
"/")[[c(1L, 1L)]] # nolint: fixed_regex_linter
"/", fixed = TRUE)[[c(1L, 1L)]]
stopifnot("Incorrect domain name in provided URL!" = grepl(regex, domain))
return(invisible(TRUE))
}

0 comments on commit b24e7e5

Please sign in to comment.