Skip to content

Commit

Permalink
Unbreak chat ID parsing for 1-to-1 chats
Browse files Browse the repository at this point in the history
Fixes #31.
  • Loading branch information
Terrance committed Nov 8, 2016
1 parent a970cbf commit 8f6d84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skpy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def chatToId(url):
Returns:
str: extracted identifier
"""
match = re.search(r"conversations/([0-9]+:[A-Za-z0-9\.,:_=/\+\-]+@(p2p\.)?thread\.skype)", url)
match = re.search(r"conversations/([0-9]+:[A-Za-z0-9\.,:_=/\+\-]+(@(p2p\.)?thread\.skype)?)", url)
return match.group(1) if match else None

class classprop(property):
Expand Down

0 comments on commit 8f6d84d

Please sign in to comment.