diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2014-08-14 14:36:00 -0300 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2014-08-14 15:19:46 -0300 |
commit | 5b1ad127f11519f519f75be9148d17d4e034b1e6 (patch) | |
tree | 0938199acaf6819beb978caaebb02928e742c851 /py-fake-service/app/search | |
parent | 57fc01e061808cf6ed006b70fe573b8a502c4517 (diff) |
initial fake html attemp
Diffstat (limited to 'py-fake-service/app/search')
-rw-r--r-- | py-fake-service/app/search/search_query.py | 2 |
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]: |