1
0
Fork 0
mirror of synced 2024-06-28 19:20:34 +12:00

corrected which group to get in the regex search

This commit is contained in:
Phxntxm 2016-08-19 18:36:47 -05:00
parent 804bc3ad8b
commit 6c3fa02134

View file

@ -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