feat: cure names that don't start with an alphabetic character

This commit is contained in:
oSumAtrIX 2023-03-13 05:08:15 +01:00
parent 431441b52f
commit ccc3834210
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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();
}