allow underscores in an emoji shortcode

This commit is contained in:
jiftechnify 2023-05-16 21:50:04 +09:00 committed by fiatjaf_
parent 835ec26141
commit ccbdfb95c1

2
30.md
View File

@ -14,7 +14,7 @@ Custom emoji may be added to **kind 0** and **kind 1** events by including one o
Where:
- `<shortcode>` is a name given for the emoji, which MUST be comprised of only alphanumeric characters.
- `<shortcode>` is a name given for the emoji, which MUST be comprised of only alphanumeric characters and underscores.
- `<image-url>` is a URL to the corresponding image file of the emoji.
For each emoji tag, clients should parse emoji shortcodes (aka "emojify") like `:shortcode:` in the event to display custom emoji.