mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
fix(Guild): name acronym (#4104)
This commit is contained in:
@@ -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, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user