fix glob pattern interpretation
parent
6c18327bbf
commit
3c1cfef827
|
@ -447,7 +447,7 @@ class CheckinDatabase:
|
||||||
match = " LIKE "
|
match = " LIKE "
|
||||||
elif query_entry.match == "glob":
|
elif query_entry.match == "glob":
|
||||||
# check if the match is exact
|
# check if the match is exact
|
||||||
if not re.match(r'(\*|\?|\[.*\])', data):
|
if not re.search(r'[*?]', data):
|
||||||
# most optimal is just '=' for exact matches
|
# most optimal is just '=' for exact matches
|
||||||
match = "="
|
match = "="
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue