Skip to content

Commit

Permalink
trim whitespace of encoded emoji (#559)
Browse files Browse the repository at this point in the history
* trim whitespace of encoded emoji

* Create eighty-crabs-accept.md
  • Loading branch information
felicio committed May 9, 2024
1 parent 8803048 commit ef5c31f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eighty-crabs-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@status-im/js": patch
---

trim whitespace of encoded emoji
2 changes: 1 addition & 1 deletion packages/status-js/src/utils/encode-url-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function decodeCommunityURLData(data: string) {
const channelSchema = z.object({
displayName: z.string().max(24).nonempty(),
description: z.string().max(140).nonempty(),
emoji: z.string().emoji().optional(),
emoji: z.string().trim().emoji().optional(),
color: colorSchema,
community: z.object({
displayName: communityDisplayName,
Expand Down

0 comments on commit ef5c31f

Please sign in to comment.