mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-03 15:54:26 +02:00
feat: allow -
and _
in usernames
This commit is contained in:
commit
276788872c
@ -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