1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

Fix partial regex match yielding false positive

This commit is contained in:
glubsy
2021-06-17 03:49:59 +02:00
parent 0b46ca2222
commit ab8750eedb
3 changed files with 15 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ class ExcludeListDialogCore:
matched = False
for row in self.exclude_list_table.rows:
compiled_regex = self.exclude_list.get_compiled(row.regex)
if compiled_regex and compiled_regex.match(test_string):
if compiled_regex and compiled_regex.fullmatch(test_string):
matched = True
row.highlight = True
else: