Skip to content

Commit ccbdfb9

Browse files
jiftechnifyfiatjaf
authored andcommitted
allow underscores in an emoji shortcode
1 parent 835ec26 commit ccbdfb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

30.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Custom emoji may be added to **kind 0** and **kind 1** events by including one o
1414

1515
Where:
1616

17-
- `<shortcode>` is a name given for the emoji, which MUST be comprised of only alphanumeric characters.
17+
- `<shortcode>` is a name given for the emoji, which MUST be comprised of only alphanumeric characters and underscores.
1818
- `<image-url>` is a URL to the corresponding image file of the emoji.
1919

2020
For each emoji tag, clients should parse emoji shortcodes (aka "emojify") like `:shortcode:` in the event to display custom emoji.
@@ -53,4 +53,4 @@ In kind 1 events, the `content` should be emojified.
5353
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
5454
"created_at": 1682630000
5555
}
56-
```
56+
```

0 commit comments

Comments
 (0)