From bdb7c803d2185ca1d5cd11d21f3606eef34b0555 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 23 Oct 2024 17:15:14 +0200 Subject: [PATCH] fix: rust replace works different --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f6e9477..3e21f21 100644 --- a/src/main.rs +++ b/src/main.rs @@ -239,7 +239,10 @@ async fn main() -> Result<()> { format!( "Generated blog post at: {}/{}", config.url, - res.replace("[+:.]", "-").to_lowercase() + res.replace("+", "-") + .replace(".", "-") + .replace(":", "-") + .to_lowercase() ), ) .await?;