mirror of
https://github.com/microsoft/markitdown.git
synced 2025-12-29 15:52:32 +00:00
Make sure extensions are unique in MarkItDown's convert methods. (#1076)
This commit is contained in:
parent
e82e0c1372
commit
9a19fdd134
@ -381,7 +381,8 @@ class MarkItDown:
|
||||
ext = ext.strip()
|
||||
if ext == "":
|
||||
return
|
||||
# if ext not in extensions:
|
||||
if ext in extensions:
|
||||
return
|
||||
extensions.append(ext)
|
||||
|
||||
def _guess_ext_magic(self, path):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user