diff --git a/skpy/util.py b/skpy/util.py index 54b7298..d3288af 100644 --- a/skpy/util.py +++ b/skpy/util.py @@ -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):