diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-09-28 09:22:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-28 09:22:02 +0200 |
| commit | a3148e51157e2ddbfbeb405b4d0b61aeafa405ba (patch) | |
| tree | 6972d4b4aacb6736c06be3f327546a094f6f86c1 /searx/query.py | |
| parent | 0e00af9c26338984ed0241fb3677550a6afd1b7d (diff) | |
| parent | ba8959ad7c18ce4165d29b7a472d845bd96f4735 (diff) | |
Merge pull request #1814 from return42/fix-typos
[fix] typos / reported by @kianmeng in searx PR-3366
Diffstat (limited to 'searx/query.py')
| -rw-r--r-- | searx/query.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/query.py b/searx/query.py index 9a1398771..b8e1c1275 100644 --- a/searx/query.py +++ b/searx/query.py @@ -198,10 +198,10 @@ class BangParser(QueryPartParser): self.raw_text_query.enginerefs.append(EngineRef(value, 'none')) return True - # check if prefix is equal with categorie name + # check if prefix is equal with category name if value in categories: # using all engines for that search, which - # are declared under that categorie name + # are declared under that category name self.raw_text_query.enginerefs.extend( EngineRef(engine.name, value) for engine in categories[value] @@ -219,7 +219,7 @@ class BangParser(QueryPartParser): self._add_autocomplete(first_char + suggestion) return - # check if query starts with categorie name + # check if query starts with category name for category in categories: if category.startswith(value): self._add_autocomplete(first_char + category.replace(' ', '_')) @@ -311,7 +311,7 @@ class RawTextQuery: def getFullQuery(self): """ - get full querry including whitespaces + get full query including whitespaces """ return '{0} {1}'.format(' '.join(self.query_parts), self.getQuery()).strip() |