Skip to content

Commit 2039cc0

Browse files
committed
Add codeberg.org to known dev urls
See r-universe-org/help#507
1 parent b854d66 commit 2039cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/issuetracker.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ guess_development_url <- function(package, git_url, validate = FALSE){
44
input <- normalize_github_urls(input)
55
input <- paste(input, replace_rforge_urls(input)) #Prefer GitHub URL over r-forge guess
66
input <- gsub('https://github.com/(cran|bioc)/', '', input) # No mirror URLS here
7-
pattern <- 'https?://(github.com|gitlab.com|bitbucket.org)/[A-Za-z0-9_-]+/[A-Za-z0-9_.-]+'
7+
pattern <- 'https?://(github.com|gitlab.com|bitbucket.org|codeberg.org)/[A-Za-z0-9_-]+/[A-Za-z0-9_.-]+'
88
m <- regexpr(pattern, input, ignore.case = TRUE)
99
urls <- regmatches(input, m)
1010
dev_url <- sub("\\.git$", "", sub("^http://", "https://", tolower(urls)))

0 commit comments

Comments
 (0)