From 6c3fa02134cd84925d0c2554a12273ad18aa9bbb Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 19 Aug 2016 18:36:47 -0500 Subject: [PATCH] corrected which group to get in the regex search --- cogs/steam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/steam.py b/cogs/steam.py index 060b20a..dd3a733 100644 --- a/cogs/steam.py +++ b/cogs/steam.py @@ -180,7 +180,7 @@ class Steam: # Attempt to find the user/steamid based on the url provided # If a url is not provided that matches steamcommunity.com, assume they provided just the user/id try: - user = re.search("((?<=://)?steamcommunity.com/(id|profile)/)+(.*)", profile).group(2) + user = re.search("((?<=://)?steamcommunity.com/(id|profile)/)+(.*)", profile).group(3) except AttributeError: user = profile