fix: rust replace works different
This commit is contained in:
parent
7a4253f723
commit
bdb7c803d2
|
@ -239,7 +239,10 @@ async fn main() -> Result<()> {
|
||||||
format!(
|
format!(
|
||||||
"Generated blog post at: {}/{}",
|
"Generated blog post at: {}/{}",
|
||||||
config.url,
|
config.url,
|
||||||
res.replace("[+:.]", "-").to_lowercase()
|
res.replace("+", "-")
|
||||||
|
.replace(".", "-")
|
||||||
|
.replace(":", "-")
|
||||||
|
.to_lowercase()
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
Loading…
Reference in a new issue