Skip to content

Commit

Permalink
better name
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed Jan 30, 2025
1 parent 6fa99b9 commit cf933e0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 33 deletions.
6 changes: 3 additions & 3 deletions pkg/custom_detectors/custom_detectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ MatchLoop:
continue MatchLoop
}

// check stopwords
for _, stopword := range c.GetStopwords() {
if strings.Contains(secret, stopword) {
// check for exclude words
for _, excludeWord := range c.GetExcludeWords() {
if strings.Contains(strings.ToLower(secret), excludeWord) {
continue MatchLoop
}
}
Expand Down
59 changes: 30 additions & 29 deletions pkg/pb/custom_detectorspb/custom_detectors.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/custom_detectors.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ message CustomRegex {
repeated VerifierConfig verify = 4;
string description = 5;
repeated string exclude_regexes_capture = 6;
repeated string stopwords = 7;
repeated string exclude_words = 7;
float entropy = 8;
repeated string exclude_regexes_match = 9;
}
Expand Down

0 comments on commit cf933e0

Please sign in to comment.