Merge branch 'Implement-Office-document-metadata-removal-for-Word-(.docx)-Excel-(.xlsx)-and-PowerPoint-(.pptx)-files' of https://github.com/Heritage-XioN/metadata-scrubber-tool into Implement-Office-document-metadata-removal-for-Word-(.docx)-Excel-(.xlsx)-and-PowerPoint-(.pptx)-files
This commit is contained in:
commit
418ccb218d
|
|
@ -44,7 +44,7 @@ class MetadataFactory:
|
|||
UnsupportedFormatError: If no handler is defined for the file type.
|
||||
ValueError: If the path is not a valid file.
|
||||
"""
|
||||
supported_extensions = ".jpg, .jpeg, .png .docx .xlsx .pptx"
|
||||
supported_extensions = ".jpg, .jpeg, .png, .docx, .xlsx, .pptx"
|
||||
ext = Path(filepath).suffix.lower()
|
||||
if Path(filepath).is_file():
|
||||
if ext in [".jpg", ".jpeg", ".png"]:
|
||||
|
|
|
|||
Loading…
Reference in New Issue