From 67bb37a2dea882e964a405d2a0092657b2d15d50 Mon Sep 17 00:00:00 2001 From: Michal Trnka Date: Wed, 10 Feb 2021 13:08:32 +0100 Subject: [PATCH] Wildcards now processed correctly with match_word=False option. --- eldar/entry.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eldar/entry.py b/eldar/entry.py index f0daa9e..0fc40ae 100644 --- a/eldar/entry.py +++ b/eldar/entry.py @@ -20,6 +20,10 @@ def __init__(self, query): def evaluate(self, doc): if self.rgx: + + if isinstance(doc, str): + doc = [doc] + for item in doc: if self.rgx.match(item): res = True