Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: cure names that don't start with an alphabetic character
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Mar 13, 2023
1 parent 431441b commit ccc3834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/decancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ccc3834

Please sign in to comment.