fix: rust replace works different

This commit is contained in:
Patrick 2024-10-23 17:15:14 +02:00
parent 7a4253f723
commit bdb7c803d2
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -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?;