From: CYBERDEViLNL Date: Tue, 10 Apr 2018 20:49:07 +0000 (+0200) Subject: extended _who_regexp to accept ' and ", else it doesn't match always. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b12b32efb7951b575f8f6fbc33785ce9227b1f13;p=diaspy.git extended _who_regexp to accept ' and ", else it doesn't match always. --- 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('')