fix(filepicker_ls): use case insensitive matching for file exts (#585)

This commit is contained in:
Jozen Blue Martinez
2024-02-11 03:34:16 +08:00
committed by AAGaming
parent 8987076c5f
commit ecd8ef5998
+1 -1
View File
@@ -228,7 +228,7 @@ class Utilities:
elif include_files:
# Handle requested extensions if present
if include_ext == None or len(include_ext) == 0 or 'all_files' in include_ext \
or splitext(file.name)[1].lstrip('.') in include_ext:
or splitext(file.name)[1].lstrip('.').upper() in (ext.upper() for ext in include_ext):
if (is_hidden and include_hidden) or not is_hidden:
files.append({"file": file, "filest": filest, "is_dir": False})
# Filter logic