Skip to content

Commit

Permalink
Add codeberg.org to known Git providers
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 9, 2024
1 parent dcdf1f5 commit 22bac18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/cran.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ find_git_url <- function(packages){
input <- paste(input, replace_rforge_urls(input)) #Prefer GitHub URL over r-forge guess
input <- gsub('https://github.com/cran/', '', input, fixed = TRUE) # No mirror URLS here
output <- rep(NA_character_, length(input))
pattern <- 'https?://(github.com|gitlab.com|bitbucket.org)/[A-Za-z0-9_-]+/[A-Za-z0-9_.-]+'
pattern <- 'https?://(github.com|gitlab.com|bitbucket.org|codeberg.org)/[A-Za-z0-9_-]+/[A-Za-z0-9_.-]+'
m <- regexpr(pattern, input, ignore.case = TRUE)
rows <- !is.na(m) & m > -1
urls <- regmatches(input, m)
Expand Down

0 comments on commit 22bac18

Please sign in to comment.