⭐️ A friendly language for building type-safe, scalable systems!

Docs : Trim trailing slashes from Forgejo hosts.

- Strip trailing slashes from Forgejo/Gitea Hosts
- "Repository" and "View-Source" links do not include `//`

authored by Aayush and committed by Louis Pilfold d7c0fff8 7445487d

Changed files
+5 -1
compiler-core
src
+5 -1
compiler-core/src/config.rs
··· 827 827 } 828 828 Repository::Gitea { 829 829 repo, user, host, .. 830 - } => Some(format!("{host}/{user}/{repo}")), 830 + } => { 831 + let string_host = host.to_string(); 832 + let cleaned_host = string_host.trim_end_matches('/'); 833 + Some(format!("{cleaned_host}/{user}/{repo}")) 834 + } 831 835 Repository::Custom { url } => Some(url.clone()), 832 836 Repository::None => None, 833 837 }