trim whitespace of encoded emoji (#559)

* trim whitespace of encoded emoji

* Create eighty-crabs-accept.md
This commit is contained in:
Felicio Mununga 2024-05-09 18:25:56 +02:00 committed by GitHub
parent 88030482df
commit ef5c31fff7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@status-im/js": patch
---
trim whitespace of encoded emoji

View File

@ -36,7 +36,7 @@ export function decodeCommunityURLData(data: string) {
const channelSchema = z.object({ const channelSchema = z.object({
displayName: z.string().max(24).nonempty(), displayName: z.string().max(24).nonempty(),
description: z.string().max(140).nonempty(), description: z.string().max(140).nonempty(),
emoji: z.string().emoji().optional(), emoji: z.string().trim().emoji().optional(),
color: colorSchema, color: colorSchema,
community: z.object({ community: z.object({
displayName: communityDisplayName, displayName: communityDisplayName,