You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2022/03/30 09:22:40 UTC

[hop] branch master updated: HOP-3867 HopVfsFileDialog filter to case insensitive

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 623339a  HOP-3867 HopVfsFileDialog filter to case insensitive
     new b960b58  Merge pull request #1429 from nadment/HOP-3867
623339a is described below

commit 623339a360012dacb8d0cbc7e9f701a07fc024ae
Author: Nicolas Adment <na...@gmail.com>
AuthorDate: Thu Mar 24 20:59:12 2022 +0100

    HOP-3867 HopVfsFileDialog filter to case insensitive
---
 ui/src/main/java/org/apache/hop/ui/core/vfs/HopVfsFileDialog.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui/src/main/java/org/apache/hop/ui/core/vfs/HopVfsFileDialog.java b/ui/src/main/java/org/apache/hop/ui/core/vfs/HopVfsFileDialog.java
index 09b9742..9b8e191 100644
--- a/ui/src/main/java/org/apache/hop/ui/core/vfs/HopVfsFileDialog.java
+++ b/ui/src/main/java/org/apache/hop/ui/core/vfs/HopVfsFileDialog.java
@@ -18,6 +18,7 @@
 package org.apache.hop.ui.core.vfs;
 
 import org.apache.commons.io.FilenameUtils;
+import org.apache.commons.io.IOCase;
 import org.apache.commons.lang.StringUtils;
 import org.apache.commons.vfs2.FileContent;
 import org.apache.commons.vfs2.FileObject;
@@ -943,7 +944,7 @@ public class HopVfsFileDialog implements IFileDialog, IDirectoryDialog {
           String selectedExtensions = filterExtensions[wFilters.getSelectionIndex()];
           String[] exts = selectedExtensions.split(";");
           for (String ext : exts) {
-            if (FilenameUtils.wildcardMatch(baseFilename, ext)) {
+            if (FilenameUtils.wildcardMatch(baseFilename, ext, IOCase.INSENSITIVE)) {
               selectFile = true;
             }
           }