✨ Regular expression can be used to filter results.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user