Merge pull request #706 from not-my-profile/remove-broken-quest-op

[fix] remove broken ? search operator
This commit is contained in:
Martin Fischer
2022-01-06 17:44:34 +01:00
committed by GitHub
4 changed files with 5 additions and 16 deletions

View File

@@ -177,7 +177,7 @@ class ExternalBangParser(QueryPartParser):
class BangParser(QueryPartParser):
@staticmethod
def check(raw_value):
return raw_value[0] == '!' or raw_value[0] == '?'
return raw_value[0] == '!'
def __call__(self, raw_value):
value = raw_value[1:].replace('-', ' ').replace('_', ' ')