Skip to content

Commit

Permalink
fix(Guild): name acronym (#4104)
Browse files Browse the repository at this point in the history
  • Loading branch information
papaia committed Apr 20, 2020
1 parent 5af1a55 commit 97cbbb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/structures/Guild.js
Expand Up @@ -465,7 +465,10 @@ class Guild extends Base {
* @readonly
*/
get nameAcronym() {
return this.name.replace(/\w+/g, name => name[0]).replace(/\s/g, '');
return this.name
.replace(/'s /g, ' ')
.replace(/\w+/g, e => e[0])
.replace(/\s/g, '');
}

/**
Expand Down

0 comments on commit 97cbbb1

Please sign in to comment.