Skip to content
Permalink
Browse files
HOP-2916 File type extensions should be case insensitive
  • Loading branch information
nadment committed May 29, 2021
1 parent 7839c9a commit ce25b918d105e61e8949020e3974585547a58b3f
Showing 1 changed file with 2 additions and 2 deletions.
@@ -52,13 +52,13 @@ public boolean isHandledBy( String filename, boolean checkContent ) throws HopEx
} else {
FileObject fileObject = HopVfs.getFileObject( filename );
FileName fileName = fileObject.getName();
String fileExtension = fileName.getExtension();
String fileExtension = fileName.getExtension().toLowerCase();

// No extension
if ( Utils.isEmpty(fileExtension) ) return false;

// Verify the extension
//
//
for ( String typeExtension : getFilterExtensions() ) {
if ( typeExtension.toLowerCase().endsWith( fileExtension ) ) {
return true;

0 comments on commit ce25b91

Please sign in to comment.