fix glob pattern interpretation

custis
Vitaliy Filippov 2015-06-16 16:17:01 +03:00
parent 6c18327bbf
commit 3c1cfef827
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ class CheckinDatabase:
match = " LIKE "
elif query_entry.match == "glob":
# 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
match = "="
else: