Could the regex matching be extended to allow trailing slash(es) in urls? I.e. allow https://github.com/r-lib/pkgdepends/ as a valid url.
The main motivation is that pkgdown github link url appends a trailing slash, and thus when I copy-paste the url to pak I need to remove this trailing slash for it to work.
pak::pak("https://github.com/r-lib/pkgdepends/")
#> Error:
#> ! ! error in pak subprocess
#> Caused by error in `get_remote_types(refs)`:
#> ! Cannot parse package: https://github.com/r-lib/pkgdepends/.
#> ℹ See `?pkgdepends::pkg_refs()` for supported package sources.
Created on 2026-07-22 with reprex v2.1.1.9000
Could the regex matching be extended to allow trailing slash(es) in urls? I.e. allow
https://github.com/r-lib/pkgdepends/as a valid url.The main motivation is that pkgdown github link url appends a trailing slash, and thus when I copy-paste the url to pak I need to remove this trailing slash for it to work.
Created on 2026-07-22 with reprex v2.1.1.9000