Skip to content

Commit

Permalink
fix fancyName
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite committed Oct 2, 2022
1 parent 3fa4567 commit 1fc4c28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "emoji-api",
"version": "3.0.0",
"version": "3.0.1",
"description": "Simple Emoji API",
"main": "build/index.js",
"module": "build/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class Emoji {
* Returns fancy name of this emoji
*/
public get fancyName() {
return `:${this.name.replace(/\W/, "_").toLowerCase()}:`;
return `:${this.name.replace(/\W/g, "_").toLowerCase()}:`;
}

/**
Expand Down

0 comments on commit 1fc4c28

Please sign in to comment.