From ddaa5a8914f229d1f3f22fdb6ff1fdbd9bcda994 Mon Sep 17 00:00:00 2001 From: Selina Lin Date: Fri, 12 Jan 2024 21:54:40 +0100 Subject: [PATCH] make search with "regex" consistent It is now case-insensitive like the search without "regex" --- .../asynchronous/asynctasks/searchfilesystem/DeepSearch.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearch.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearch.kt index a1135c6790..9adac543dc 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearch.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearch.kt @@ -69,9 +69,8 @@ class DeepSearch( } else { // compile the regular expression in the input val pattern = Pattern.compile( - bashRegexToJava( - query - ) + bashRegexToJava(query), + Pattern.CASE_INSENSITIVE ) // level 2 if (!isMatchesEnabled) {