Skip to content

Commit

Permalink
feat: allow - and _ in usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX authored Sep 8, 2022
2 parents a75d6e8 + 8af95f0 commit 2767888
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 @@ -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();
Expand Down

0 comments on commit 2767888

Please sign in to comment.