From df92dcb0a46160ccb5a3548d5dd66404e2b1ba3e Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 24 May 2024 08:07:57 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Regular=20expression=20can=20be=20u?= =?UTF-8?q?sed=20to=20filter=20results.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/helper/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: