mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 01:30:54 +01:00
(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:
1 parent
e42237ff0d
commit
4aafe9a676
9 files changed
+9
-9
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user