(v3.0.1.9103) Replace dead EC Union Register URLs; URL check no longer includes closing braces

The pre-commit URL extractor captured the closing brace of \url{}, which
made the EC server redirect to the dead health.ec.europa.eu domain, after
which urlchecker::url_update() wrote that dead URL back into R/ab.R and R/av.R.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dr. M.S. (Matthijs) BerendsandClaude Opus 5.5 committed 2026-10-04 19:53:40 +02:00
1 parent e42237ff0d
commit 4aafe9a676
9 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -847,7 +847,7 @@ if (files_changed()) {
# Function to extract URLs from a file
extract_urls_from_file <- function(file_path) {
lines <- readLines(file_path, warn = FALSE)
urls <- stringr::str_extract_all(lines, "https?://[^\\s)\"'>]+")
urls <- stringr::str_extract_all(lines, "https?://[^\\s)\"'>}]+")
urls <- unlist(urls)
if (length(urls) == 0) {
return(NULL)