diff options
| author | Jozen Blue Martinez <internet.cafe.da@gmail.com> | 2024-02-11 03:34:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-10 11:34:16 -0800 |
| commit | 435dfa788454bc33f5c82d3fcfdc0a1dcf1b2644 (patch) | |
| tree | 19122bfaa8ba6a43de2b6f471d481d2af272a377 | |
| parent | 2500b748ce49b396844ea89832bf8500ff765434 (diff) | |
| download | decky-loader-435dfa788454bc33f5c82d3fcfdc0a1dcf1b2644.tar.gz decky-loader-435dfa788454bc33f5c82d3fcfdc0a1dcf1b2644.zip | |
fix(filepicker_ls): use case insensitive matching for file exts (#585)v2.10.16-pre1v2.10.16
| -rw-r--r-- | backend/src/utilities.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/utilities.py b/backend/src/utilities.py index b0e23b88..edde682d 100644 --- a/backend/src/utilities.py +++ b/backend/src/utilities.py @@ -238,7 +238,7 @@ class Utilities: 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 |
