From e65c88abf8b85839a3c946ced81353857542e337 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 19 Mar 2017 01:55:40 -1000 Subject: [PATCH] readabilite: fix re.match --- morss/readabilite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/readabilite.py b/morss/readabilite.py index d667515..d22b42d 100644 --- a/morss/readabilite.py +++ b/morss/readabilite.py @@ -111,7 +111,7 @@ def clean_html(root): item.getparent().remove(item) class_id = item.get('class', '') + item.get('id', '') - if regex_bad.match(class_id): + if regex_bad.match(class_id) is not None: item.getparent().remove(item) if isinstance(item, lxml.html.HtmlComment):