Skip to content

Commit

Permalink
Update R/build-home-index.R
Browse files Browse the repository at this point in the history
Co-authored-by: Lionel Henry <[email protected]>
  • Loading branch information
catalamarti and lionel- authored Aug 15, 2024
1 parent ca04c6b commit a0d2807
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/build-home-index.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ data_home_sidebar_links <- function(pkg = ".") {
links <- config_pluck(pkg, "home.links")

bug_reports <- pkg$desc$get_field("BugReports", default = NULL)
if (grepl("@", bug_reports)) bug_reports <- paste0("mailto:", bug_reports)
if (grepl("@", bug_reports)) {
bug_reports <- paste0("mailto:", bug_reports)
}

links <- c(
link_url(sprintf(tr_("View on %s"), repo$repo), repo$url),
Expand Down

0 comments on commit a0d2807

Please sign in to comment.