From b12b32efb7951b575f8f6fbc33785ce9227b1f13 Mon Sep 17 00:00:00 2001 From: CYBERDEViLNL Date: Tue, 10 Apr 2018 22:49:07 +0200 Subject: [PATCH] extended _who_regexp to accept ' and ", else it doesn't match always. --- diaspy/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diaspy/models.py b/diaspy/models.py index 64303e3..78c721a 100644 --- a/diaspy/models.py +++ b/diaspy/models.py @@ -93,7 +93,7 @@ class Aspect(): class Notification(): """This class represents single notification. """ - _who_regexp = re.compile(r'/people/[0-9a-f]+" class=\'hovercardable') + _who_regexp = re.compile(r'/people/[0-9a-f]+["\']{1} class=["\']{1}hovercardable') _when_regexp = re.compile(r'[0-9]{4,4}(-[0-9]{2,2}){2,2} [0-9]{2,2}(:[0-9]{2,2}){2,2} UTC') _aboutid_regexp = re.compile(r'/posts/[0-9a-f]+') _htmltag_regexp = re.compile('') -- 2.25.1