diff options
author | 2022-07-20 20:22:59 -0400 | |
---|---|---|
committer | 2022-07-20 20:22:59 -0400 | |
commit | 1f50781638f634c6c3d8a780bba0573f7696b0c2 (patch) | |
tree | 4987209a6d4029979b9500c0fbba1a87c8f7999d | |
parent | Improved numerical matching safety (diff) |
Improved REGEX Emoji match
Co-authored-by: ChrisJL <[email protected]>
-rw-r--r-- | bot/exts/fun/uwu.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |