From a1eacb023782f2e4d9528833526f2090195c5a46 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 24 Jul 2024 19:17:45 -0300 Subject: Fix: case insensitivity --- packages/finder/plugin/searcher/file/name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/finder/plugin/searcher/file/name.py b/packages/finder/plugin/searcher/file/name.py index 9d02173..4f4bd18 100644 --- a/packages/finder/plugin/searcher/file/name.py +++ b/packages/finder/plugin/searcher/file/name.py @@ -63,4 +63,4 @@ class FinderPluginFileNameSearcher(): if text == '' or text is None: return self.items - return filter(lambda s: re.match(".*" + re.escape(text) + ".*", s), self.items) + return filter(lambda s: re.search(re.escape(text), s, flags=re.IGNORECASE), self.items) -- cgit v1.2.3