|
|
|
@ -501,7 +501,7 @@ def from_csgo_friend_code(code, universe=EUniverse.Public): |
|
|
|
:return: SteamID instance |
|
|
|
:rtype: :class:`.SteamID` or :class:`None` |
|
|
|
""" |
|
|
|
if not re.match(r'^['+_csgofrcode_chars+'\-]{10}$', code): |
|
|
|
if not re.match(r'^['+_csgofrcode_chars+r'\-]{10}$', code): |
|
|
|
return None |
|
|
|
|
|
|
|
code = ('AAAA-' + code).replace('-', '') |
|
|
|
@ -574,7 +574,7 @@ def steam64_from_url(url, http_timeout=30): |
|
|
|
# group profiles |
|
|
|
else: |
|
|
|
text = web.get(match.group('clean_url'), timeout=http_timeout).text |
|
|
|
data_match = re.search("OpenGroupChat\( *'(?P<steamid>\d+)'", text) |
|
|
|
data_match = re.search(r"OpenGroupChat\( *'(?P<steamid>\d+)'", text) |
|
|
|
|
|
|
|
if data_match: |
|
|
|
return int(data_match.group('steamid')) |
|
|
|
|