Skip to content

Commit

Permalink
[skip actions] [docx] 2023-10-15T13:21:06+03:00
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Oct 15, 2023
1 parent db1aaef commit 4dadc53
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credsweeper/file_handler/file_path_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def check_exclude_file(config: Config, path: str) -> bool:
return True
if not config.depth and file_extension in config.exclude_containers:
return True
# --depth or --doc enables scan for all files
# --depth or --doc enables scan for all documents extensions
if not (config.depth or config.doc) and file_extension in config.exclude_documents:
return True
return False
Expand Down
Binary file added tests/samples/sample.docx.gz
Binary file not shown.
Binary file added tests/samples/small.pdf
Binary file not shown.

0 comments on commit 4dadc53

Please sign in to comment.