From 5571950c905ff94d898501e5a0d76895fa140069 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 30 Mar 2025 13:04:04 +0200 Subject: [PATCH] Fix error in emoji range (#1585) Use A-Za-z range instead of A-z range --- structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs.go b/structs.go index 28158c3..3b251c0 100644 --- a/structs.go +++ b/structs.go @@ -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