We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4bddf commit 5955498Copy full SHA for 5955498
src/util/DataResolver.js
@@ -30,7 +30,7 @@ class DataResolver {
30
* @returns {string}
31
*/
32
static resolveInviteCode(data) {
33
- const inviteRegex = /discord(?:app\.com\/invite|\.gg(?:\/invite)?)\/([\w-]{2,255})/i;
+ const inviteRegex = /discord(?:(?:app)?\.com\/invite|\.gg(?:\/invite)?)\/([\w-]{2,255})/i;
34
const match = inviteRegex.exec(data);
35
if (match && match[1]) return match[1];
36
return data;
0 commit comments