From 8f6d84dc24628c429dcbecc723c4c7b6d473071c Mon Sep 17 00:00:00 2001 From: Ollie Terrance Date: Tue, 8 Nov 2016 18:58:31 +0000 Subject: [PATCH] Unbreak chat ID parsing for 1-to-1 chats Fixes #31. --- skpy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):