fix: ensure file extension validation is case-insensitive

This commit is contained in:
Harry 2026-02-10 18:21:26 +08:00
parent 56fd571acc
commit 4b1af0d525
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ def _is_file_valid_with_config(
if (
input_file_type == FileType.CUSTOM
and config.allowed_file_extensions is not None
and file_extension not in config.allowed_file_extensions
and file_extension.lower() not in {ext.lower() for ext in config.allowed_file_extensions}
):
return False