From 5f5207520f70977faad7e4d2ef5fc77d05377f9a Mon Sep 17 00:00:00 2001 From: yangxingyuan Date: Fri, 5 May 2023 19:25:37 +0800 Subject: [PATCH] fix: slug normalize for `.` --- crates/slugger/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/slugger/src/lib.rs b/crates/slugger/src/lib.rs index f043d82..fbff0f1 100644 --- a/crates/slugger/src/lib.rs +++ b/crates/slugger/src/lib.rs @@ -10,7 +10,7 @@ pub struct Slugger { } fn normalize_slug(value: &String) -> String { - value.replace(" ", "-").replace(".", "-") + value.replace(" ", "-").replace(".", "") } impl Slugger {