From 8af95f03bccde54089d4c44c107822b6edc0e8b4 Mon Sep 17 00:00:00 2001 From: Palm Date: Thu, 8 Sep 2022 06:59:40 +0700 Subject: [PATCH] fix: exclude dash and underscore for decancer --- src/utils/decancer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/decancer.rs b/src/utils/decancer.rs index 29a6e98..cdce360 100644 --- a/src/utils/decancer.rs +++ b/src/utils/decancer.rs @@ -24,7 +24,7 @@ pub async fn cure( let mut cured_name = DECANCER .cure(&name) - .replace(|c: char| !(c == ' ' || c.is_ascii_alphanumeric()), ""); + .replace(|c: char| !(c == ' ' || c == '-' || c == '_' || c.is_ascii_alphanumeric()), ""); if cured_name.is_empty() { cured_name = "ReVanced user".to_string();