Skip to content

Commit

Permalink
rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Jan 17, 2025
1 parent 82426a0 commit fbba7fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions credsweeper/filters/value_pattern_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ def run(self, line_data: LineData, target: AnalysisTarget) -> bool:
"""
if len(line_data.value) < self.pattern_len:
# the filter cannot check short value
return False
return True

if self.equal_pattern_check(line_data.value):
return True
Expand Down
4 changes: 2 additions & 2 deletions tests/test_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ def test_secret_pair_p(self) -> None:
content_provider: AbstractProvider = FilesProvider([SAMPLES_PATH / "doc_secret_pair"])
self.cred_sweeper.run(content_provider=content_provider)
found_credentials = self.cred_sweeper.credential_manager.get_credentials()
self.assertEqual(39, len(found_credentials))
self.assertEqual(38, len(found_credentials))

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

def test_passwd_pair_p(self) -> None:
content_provider: AbstractProvider = FilesProvider([SAMPLES_PATH / "doc_passwd_pair"])
self.cred_sweeper.run(content_provider=content_provider)
found_credentials = self.cred_sweeper.credential_manager.get_credentials()
self.assertEqual(73, len(found_credentials))
self.assertEqual(72, len(found_credentials))

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

Expand Down

0 comments on commit fbba7fd

Please sign in to comment.