Skip to content

Commit

Permalink
fix(filepicker_ls): use case insensitive matching for file exts (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
doZennn authored Feb 10, 2024
1 parent 2500b74 commit 435dfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ async def filepicker_ls(self,
elif include_files:
# Handle requested extensions if present
if 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
Expand Down

0 comments on commit 435dfa7

Please sign in to comment.