From 1f50781638f634c6c3d8a780bba0573f7696b0c2 Mon Sep 17 00:00:00 2001 From: Ionite Date: Wed, 20 Jul 2022 20:22:59 -0400 Subject: Improved REGEX Emoji match Co-authored-by: ChrisJL --- bot/exts/fun/uwu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/fun/uwu.py b/bot/exts/fun/uwu.py index fa66d807..82ea6e40 100644 --- a/bot/exts/fun/uwu.py +++ b/bot/exts/fun/uwu.py @@ -57,7 +57,7 @@ SUBSTITUTE_STUTTER = r"\g<1>\g<2>-\g<2>" REGEX_NYA = re.compile(r"n([aeou][^aeiou])") SUBSTITUTE_NYA = r"ny\1" -REGEX_EMOJI = re.compile(r"<(a?)?:(\w+):(\d{18})>?", re.ASCII) +REGEX_EMOJI = re.compile(r"<(a)?:(\w+?):(\d{15,21}?)>", re.ASCII) @dataclass(frozen=True, eq=True) -- cgit v1.2.3