From ccc38342102a3cec0d9ab0189c031563c5a01cc5 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 13 Mar 2023 05:08:15 +0100 Subject: [PATCH] feat: cure names that don't start with an alphabetic character --- 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 84992fb..2e902ca 100644 --- a/src/utils/decancer.rs +++ b/src/utils/decancer.rs @@ -32,7 +32,7 @@ pub async fn cure( "", ); - if cured_name.is_empty() { + if cured_name.is_empty() || !cured_name.starts_with(|c: char| c.is_ascii_alphabetic()) { cured_name = "ReVanced user".to_string(); }