aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2018-12-28 08:21:38 +1000
committerGravatar GitHub <[email protected]>2018-12-28 08:21:38 +1000
commita6b997fcebe747aa9bbfb92ce17d0725159a08fc (patch)
treee89232c6ec3dd12c58debda56ebcbc163b499119
parentMerge branch 'master' into charinfo (diff)
Simplify regex pattern
Co-Authored-By: scragly <[email protected]>
-rw-r--r--bot/cogs/utils.py2
1 files changed, 1 insertions, 1 deletions
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",