aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/utils/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py
index 817d159b2..29db374b4 100644
--- a/bot/exts/utils/utils.py
+++ b/bot/exts/utils/utils.py
@@ -111,7 +111,7 @@ class Utils(Cog):
zen_lines = ZEN_OF_PYTHON.splitlines()
# Prioritize checking for an index or slice
- match = re.search(r"^(\d+)(:\d+)?", search_value.split(" ")[0])
+ match = re.match(r"(-?\d+)(:-?\d+)?", search_value.split(" ")[0])
if match:
upper_bound = len(zen_lines) - 1
lower_bound = -1 * len(zen_lines)