File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,11 @@ 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-_]+)` ;
86
87
if ( settings . third_party . checked ) {
87
- 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-_/]+" ;
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-_/]+` ;
88
89
} else {
89
- return `(?:https?://)?(?:www.|ptb.|canary.)?(?:discord(?:app)?\\.(?:(?:com|gg)/(?:invite|servers)/[a-z0-9-_]+)|discord\\.gg/[a-z0-9-_]+)` ;
90
+ return main_invites ;
90
91
} ;
91
92
} ,
92
93
setting_elements : {
You can’t perform that action at this time.
0 commit comments