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

Commit

Permalink
fix: exclude dash and underscore for decancer
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs authored Sep 7, 2022
1 parent a75d6e8 commit 8af95f0
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 8af95f0

Please sign in to comment.