File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -83,26 +83,10 @@ const regex_types = [
83
83
copy_btn : document . getElementById ( "copy-regex-invite-links" ) ,
84
84
output : document . getElementById ( "regex-output-invite-links" ) ,
85
85
generator : function ( settings ) {
86
- const main_invites = `(?:https?:\\/\\/)?(?:www\\.|ptb\\.|canary\\.)?(?:discord(?:app)?\\.(?:(?:com|gg)\\/(?:invite|servers)\\/+[a-z0-9-_]+)|discord\\.gg\\/+[a-z0-9-_]+)` ;
87
86
if ( settings . third_party . checked ) {
88
- return ` ${ main_invites } |discord\\.gg/[a-z0-9-_]+)| (?:https?://)?(?:www\\. )?(?:dsc\\.gg|invite\\.gg+ |discord\\.link|(?:discord\\.(gg|io|me|li|id))|disboard\\.org)/ [a-z0-9-_/]+` ;
87
+ return " (?:https?://)?(?:www.|ptb.|canary. )?(?:dsc\\.gg|invite\\.gg|discord\\.link|(?:discord\\.(?: gg|io|me|li|id))|disboard\\.org|discord(?:app)?\\.(?:com|gg)/(?:invite|servers))/ [a-z0-9-_]+" ;
89
88
} else {
90
- return main_invites ;
91
- } ;
92
- } ,
93
- setting_elements : {
94
- third_party : document . getElementById ( "include-3rdparty" )
95
- }
96
- } ,
97
- {
98
- name : "invite-links" ,
99
- copy_btn : document . getElementById ( "copy-regex-invite-links" ) ,
100
- output : document . getElementById ( "regex-output-invite-links" ) ,
101
- generator : function ( settings ) {
102
- if ( settings . third_party . checked ) {
103
- return "(?:https?://)?(?:www.|ptb.|canary.)?(?:discord(?:app)?\\.(?:(?:com|gg)/(?:invite|servers)/[a-z0-9-_]+)|discord\\.gg/[a-z0-9-_]+)|(?:https?://)?(?:www\\.)?(?:dsc\\.gg|invite\\.gg+|discord\\.link|(?:discord\\.(gg|io|me|li|id))|disboard\\.org)/[a-z0-9-_/]+" ;
104
- } else {
105
- return `(?:https?://)?(?:www.|ptb.|canary.)?(?:discord(?:app)?\\.(?:(?:com|gg)/(?:invite|servers)/[a-z0-9-_]+)|discord\\.gg/[a-z0-9-_]+)` ;
89
+ return `(?:https?://)?(?:www.|ptb.|canary.)?(?:discord\\.gg|discord(?:app)?\\.(?:com|gg)/(?:invite|servers))/[a-z0-9-_]+` ;
106
90
} ;
107
91
} ,
108
92
setting_elements : {
You can’t perform that action at this time.
0 commit comments