From 1fc4c28c7937dcdb4f055a670018f4b6f14697dd Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Sun, 2 Oct 2022 22:49:14 +0545 Subject: [PATCH] fix fancyName --- package.json | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 40c8c0a..84ece61 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index e6b20af..2b11cea 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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()}:`; } /**