diff --git a/app/utils/routing_utils.py b/app/utils/routing_utils.py index 55a6253..4cbbb16 100644 --- a/app/utils/routing_utils.py +++ b/app/utils/routing_utils.py @@ -71,8 +71,9 @@ class RoutingUtils: return self.query def bang_operator(self, bangs_dict: dict) -> str: + split_query = self.query.split(' ') for operator in bangs_dict.keys(): - if self.query.split(' ')[0] != operator: + if operator not in split_query: continue return bangs_dict[operator]['url'].format(