aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/emoteCloner.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/emoteCloner.tsx')
-rw-r--r--src/plugins/emoteCloner.tsx3
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"
}
/>