fix: make extension check case-insensitive in BaseFileComponent (#6256)
fix: Case-insensitive file extension validation in BaseFileComponent Modify file extension validation to use lowercase comparison, ensuring consistent handling of file extensions across different input cases
This commit is contained in:
parent
10aea2e9b6
commit
8a5cfa3526
1 changed files with 1 additions and 1 deletions
|
|
@ -492,7 +492,7 @@ class BaseFileComponent(Component, ABC):
|
||||||
self.log(f"Not a file: {file.path.name}")
|
self.log(f"Not a file: {file.path.name}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if file.path.suffix[1:] not in self.valid_extensions:
|
if file.path.suffix[1:].lower() not in self.valid_extensions:
|
||||||
if self.ignore_unsupported_extensions:
|
if self.ignore_unsupported_extensions:
|
||||||
ignored_files.append(file.path.name)
|
ignored_files.append(file.path.name)
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue