Commit 1c72448e authored by jvoisin's avatar jvoisin

Improve the detection of unsupported extensions in uppercase

parent f0686216
......@@ -36,7 +36,7 @@ def get_parser(filename: str) -> Tuple[Optional[T], Optional[str]]:
mtype, _ = mimetypes.guess_type(filename)
_, extension = os.path.splitext(filename)
if extension in UNSUPPORTED_EXTENSIONS:
if extension.lower() in UNSUPPORTED_EXTENSIONS:
return None, mtype
for parser_class in _get_parsers(): # type: ignore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment