aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index a0cf907..1735583 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -890,8 +890,8 @@ class Mastodon:
890 if "status" in filter_object: 890 if "status" in filter_object:
891 filter_status = filter_object["status"] 891 filter_status = filter_object["status"]
892 filter_text = filter_status["content"] 892 filter_text = filter_status["content"]
893 filter_text = re.sub("<.*?>", " ", filter_text) 893 filter_text = re.sub(r"<.*?>", " ", filter_text)
894 filter_text = re.sub('\s+', ' ', filter_text).strip() 894 filter_text = re.sub(r"\s+", " ", filter_text).strip()
895 if not filter_re.search(filter_text): 895 if not filter_re.search(filter_text):
896 filter_results.append(filter_object) 896 filter_results.append(filter_object)
897 return filter_results 897 return filter_results
Powered by cgit v1.2.3 (git 2.41.0)