From fc943b7778bc07ff681c644f8a62879a669af4b2 Mon Sep 17 00:00:00 2001 From: Animal <24845294+ItzOnlyAnimal@users.noreply.github.com> Date: Tue, 16 May 2023 13:22:46 -0400 Subject: [PATCH] emoteCloner: allow other characters in sticker names (#1140) * allow spaces and other characters in cloning sticker names * fix * stickers have a different character limit --- src/plugins/emoteCloner.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/emoteCloner.tsx b/src/plugins/emoteCloner.tsx index 521ed86a..01065fd2 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" } />