summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-05-24 08:07:57 +0200
committerRobert Honz <exislow+github@gmail.com>2024-05-24 08:07:57 +0200
commitdf92dcb0a46160ccb5a3548d5dd66404e2b1ba3e (patch)
tree04b9e509387e5fdfdb755f38f73c2876be35f8a5
parent5b04063e83b45593f5d65b5b1fb51acd637ccd72 (diff)
downloadtidal-dl-ng-df92dcb0a46160ccb5a3548d5dd66404e2b1ba3e.tar.gz
✨ Regular expression can be used to filter results.
-rw-r--r--tidal_dl_ng/helper/gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tidal_dl_ng/helper/gui.py b/tidal_dl_ng/helper/gui.py
index 0506491..855f01e 100644
--- a/tidal_dl_ng/helper/gui.py
+++ b/tidal_dl_ng/helper/gui.py
@@ -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: