Skip to content

Commit

Permalink
Casefold extension check
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Jan 11, 2025
1 parent de61d5b commit e6b0885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tivars/var.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ def open(cls, filename: str) -> Self:
"""

if cls._type_id is not None and \
not any(filename.endswith(extension) for extension in cls.extensions.values()):
not any(filename.lower().endswith(extension) for extension in cls.extensions.values()):
warn(f"File extension .{filename.split('.')[-1]} not recognized for var type {cls}; "
f"attempting to read anyway.",
UserWarning)
Expand Down

0 comments on commit e6b0885

Please sign in to comment.