Fix error in emoji range (#1585)

Use A-Za-z range instead of A-z range
This commit is contained in:
Derk-Jan Hartman 2025-03-30 13:04:04 +02:00 committed by GitHub
parent 69ea356662
commit 5571950c90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -612,7 +612,7 @@ type Emoji struct {
// EmojiRegex is the regex used to find and identify emojis in messages
var (
EmojiRegex = regexp.MustCompile(`<(a|):[A-z0-9_~]+:[0-9]{18,20}>`)
EmojiRegex = regexp.MustCompile(`<(a|):[A-Za-z0-9_~]+:[0-9]{18,20}>`)
)
// MessageFormat returns a correctly formatted Emoji for use in Message content and embeds