File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function create_default_embed(
3636function cleanRoleString ( role_name : string ) : string {
3737 const clean_role_name : string = role_name
3838 . toLowerCase ( )
39- . replace ( / [ ` ~ ! @ # $ % ^ & * ) ) | + = ? ; : ' " , . < > \{ \} \ [\] \ \\/ ] / gi, "" )
39+ . replace ( / [ ` ~ ! @ # $ % ^ & * ) ) | + = ? ; : ' " , . < > { } [ \] \\ / ] / gi, "" )
4040 . replace ( / [ ( ] / gi, "-" ) ;
4141 return clean_role_name ;
4242}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import chalk from "chalk";
44export function cleanChannelString ( s : string ) : string {
55 return s
66 . toLowerCase ( )
7- . replace ( / [ ` ~ ! @ # $ % ^ & * ) ) | + = ? ; : ' " , . < > \{ \} \ [\] \ \\/ ] / gi, "" )
7+ . replace ( / [ ` ~ ! @ # $ % ^ & * ) ) | + = ? ; : ' " , . < > { } [ \] \\ / ] / gi, "" )
88 . replace ( "compsci " , "cs" )
99 . replace ( / [ ( ] / gi, "-" ) ;
1010}
You can’t perform that action at this time.
0 commit comments