Skip to content

Commit

Permalink
Wildcards now processed correctly with match_word=False option.
Browse files Browse the repository at this point in the history
  • Loading branch information
misotrnka committed Feb 10, 2021
1 parent 09acbae commit 67bb37a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eldar/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67bb37a

Please sign in to comment.