Webpack build for branch master: 61f5051dfd

This commit is contained in:
Travis CI 2017-03-30 12:42:44 +00:00
parent a542f05158
commit e3b7a5e271
2 changed files with 2 additions and 2 deletions

View file

@ -9455,7 +9455,7 @@ class ClientDataResolver {
* @returns {string}
*/
resolveInviteCode(data) {
const inviteRegex = /discord(?:app)?\.(?:gg|com\/invite)\/([a-z0-9]{5})/i;
const inviteRegex = /discord(?:app\.com\/invite|\.gg)\/([\w-]{2,255})/i;
const match = inviteRegex.exec(data);
if (match && match[1]) return match[1];
return data;

File diff suppressed because one or more lines are too long