mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 03:00:35 +00:00
fix(Guild): name acronym (#4104)
This commit is contained in:
parent
5af1a552bc
commit
97cbbb176b
1 changed files with 4 additions and 1 deletions
|
|
@ -465,7 +465,10 @@ class Guild extends Base {
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get nameAcronym() {
|
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, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue