aboutsummaryrefslogtreecommitdiff
path: root/src/html.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.rs')
-rw-r--r--src/html.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html.rs b/src/html.rs
index 00a1af4..83e38ab 100644
--- a/src/html.rs
+++ b/src/html.rs
@@ -73,13 +73,14 @@ pub fn from_gemini(
{
href = format!("/proxy/{}", href.trim_start_matches("gemini://"));
} else {
- href = href.trim_start_matches("gemini://").replace(
+ href = href.trim_start_matches("gemini://").replacen(
&if let Some(host) = url.host() {
host.to_string()
} else {
return None;
},
"",
+ 1,
);
}
}