✨ Regular expression can be used to filter results.

This commit is contained in:
Robert Honz
2024-05-24 08:07:57 +02:00
parent 5b04063e83
commit df92dcb0a4
+1 -1
View File
@@ -191,7 +191,7 @@ class HumanProxyModel(QtCore.QSortFilterProxyModel):
data = ix.data()
# Append results to list to enable an AND operator for filtering.
result.append(bool(text.lower() in str(data).lower()))
result.append(bool(re.search(rf"{text}", data, re.MULTILINE | re.IGNORECASE)))
# If no filter set, just set the result to True.
if not result: