diff options
author | Animal <24845294+ItzOnlyAnimal@users.noreply.github.com> | 2023-05-16 13:22:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 19:22:46 +0200 |
commit | fc943b7778bc07ff681c644f8a62879a669af4b2 (patch) | |
tree | 697ba02d4f404613ec6f918d9daf7e68c70626d4 | |
parent | 3f2bcd2cab1a7a3c32b9cffd5d4fc5df6dde670b (diff) | |
download | Vencord-fc943b7778bc07ff681c644f8a62879a669af4b2.tar.gz Vencord-fc943b7778bc07ff681c644f8a62879a669af4b2.tar.bz2 Vencord-fc943b7778bc07ff681c644f8a62879a669af4b2.zip |
emoteCloner: allow other characters in sticker names (#1140)
* allow spaces and other characters in cloning sticker names
* fix
* stickers have a different character limit
-rw-r--r-- | src/plugins/emoteCloner.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/emoteCloner.tsx b/src/plugins/emoteCloner.tsx index 521ed86..01065fd 100644 --- a/src/plugins/emoteCloner.tsx +++ b/src/plugins/emoteCloner.tsx @@ -194,7 +194,8 @@ function CloneModal({ data }: { data: Sticker | Emoji; }) { setName(v); }} validate={v => - (v.length > 1 && v.length < 32 && nameValidator.test(v)) + (data.t === "Emoji" && v.length > 2 && v.length < 32 && nameValidator.test(v)) + || (data.t === "Sticker" && v.length > 2 && v.length < 30) || "Name must be between 2 and 32 characters and only contain alphanumeric characters" } /> |