Skip to content

Fix broken regular expressions causing false negatives

Adam Cohen requested to merge 458626-add-test-for-broken-regex into master

What does this MR do?

This MR does the following:

  1. Fixes broken regexes that prevented certain passwords ending in a hyphen from matching.
  2. Adds more tests to increase test coverage related to passwords appearing inside text.
  3. Eliminates a flaky test in TestGitleaksTOMLRegexp that was failing 20% - 27% of the time.

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Adam Cohen

Merge request reports