Skip to content

Commit

Permalink
Fix for Windows for prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Mar 27, 2021
1 parent 390500d commit 56f746b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ replace_url <- function(path){
suffix <- regmatches(path, regexpr(pattern, path))
path <- sub(pattern, "", path)
paste0(download_url(path), suffix)
} else if(grepl("^[^/\\]+:$", path)) {
# demo images e.g. "logo:" or "wizard:"
} else if(grepl("^[^/\\]+:($|[^/\\])", path)) {
# demo images e.g. "logo:" or "wizard:" or "cr2:myfile.cr2"
return(path)
} else {
normalizePath(path, mustWork = FALSE)
Expand Down

0 comments on commit 56f746b

Please sign in to comment.