mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-01 23:14:25 +02:00
fix: exclude dash and underscore for decancer
This commit is contained in:
parent
a75d6e8692
commit
8af95f03bc
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user