regex fix for non-english
This commit is contained in:
parent
8de2d8b351
commit
2c8ff45c9d
1 changed files with 1 additions and 1 deletions
|
@ -1278,7 +1278,7 @@ class Guild extends SnowFlake {
|
|||
}
|
||||
const build = name
|
||||
.replace(/'s /g, " ")
|
||||
.replace(/\w+/g, (word) => word[0])
|
||||
.replace(/[^\s]+/g, (word) => word[0])
|
||||
.replace(/\s/g, "");
|
||||
div.textContent = build;
|
||||
div.classList.add("blankserver", "servericon");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue