From 3c1cfef827ce3841fd10769f28f2e9f2117ba7fc Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 16 Jun 2015 16:17:01 +0300 Subject: [PATCH] fix glob pattern interpretation --- lib/cvsdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cvsdb.py b/lib/cvsdb.py index dbc0c749..0be1508a 100644 --- a/lib/cvsdb.py +++ b/lib/cvsdb.py @@ -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: