summaryrefslogtreecommitdiff
path: root/py-fake-service/app/search/search_query.py
diff options
context:
space:
mode:
Diffstat (limited to 'py-fake-service/app/search/search_query.py')
-rw-r--r--py-fake-service/app/search/search_query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py-fake-service/app/search/search_query.py b/py-fake-service/app/search/search_query.py
index 2d13851d..83c0bbca 100644
--- a/py-fake-service/app/search/search_query.py
+++ b/py-fake-service/app/search/search_query.py
@@ -57,7 +57,7 @@ class SearchQuery:
if self.compiled.get('general'):
search_terms = re.compile(self.compiled['general'], flags=re.IGNORECASE)
- if search_terms.match(mail.body) or search_terms.match(mail.subject):
+ if search_terms.search(mail.body) or search_terms.search(mail.subject):
return True
if not [v for v in self.compiled.values() if v]: