From a6b997fcebe747aa9bbfb92ce17d0725159a08fc Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 28 Dec 2018 08:21:38 +1000 Subject: Simplify regex pattern Co-Authored-By: scragly <29337040+scragly@users.noreply.github.com> --- bot/cogs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/cogs/utils.py b/bot/cogs/utils.py index d605cd201..94f3938e4 100644 --- a/bot/cogs/utils.py +++ b/bot/cogs/utils.py @@ -94,7 +94,7 @@ class Utils: Shows you information on up to 25 unicode characters. """ - match = re.match(r"<(a?):([a-zA-Z0-9\_]+):([0-9]+)>", characters) + match = re.match(r"<(a?):(\w+):(\d+)>", characters) if match: embed = Embed( title="Non-Character Detected", -- cgit v1.2.3