Skip to content

Commit

Permalink
fix sensitive_strings searcher for HDF5 files
Browse files Browse the repository at this point in the history
  • Loading branch information
bbean23 committed Aug 10, 2024
1 parent 1509469 commit bcbb4fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/scripts/sensitive_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def _is_binary_file(self, file_path: str, file_name_ext: str):
ext = ext.lower()
if ext == ".ipynb":
is_binary_file = True
if self._is_img_ext(ext):
elif ext == ".h5":
is_binary_file = True
elif self._is_img_ext(ext):
if ext in self._text_file_extensions:
is_binary_file = False
elif (f"{file_path}/{file_name_ext}" in self._text_file_path_name_exts) or (
Expand Down

0 comments on commit bcbb4fb

Please sign in to comment.