Mirror von
				https://github.com/arsenetar/dupeguru.git
				synchronisiert 2025-09-11 17:58:17 +00:00 
			
		
		
		
	Fix exception when testing invalid regex
* If a regex in the table is invalid and failed to compile, its "compiled" property is None. * Only test against the regex if its compilation worked.
Dieser Commit ist enthalten in:
		
							Ursprung
							
								
									348ce95f83
								
							
						
					
					
						Commit
						b138dfad33
					
				| @ -55,7 +55,8 @@ class ExcludeListDialogCore: | ||||
|         """Sets property on row to highlight if its regex matches test_string supplied.""" | ||||
|         matched = False | ||||
|         for row in self.exclude_list_table.rows: | ||||
|             if self.exclude_list.get_compiled(row.regex).match(test_string): | ||||
|             compiled_regex = self.exclude_list.get_compiled(row.regex) | ||||
|             if compiled_regex and compiled_regex.match(test_string): | ||||
|                 matched = True | ||||
|                 row.highlight = True | ||||
|             else: | ||||
|  | ||||
		Laden…
	
	
			
			x
			
			
		
	
		In neuem Issue referenzieren
	
	Einen Benutzer sperren