Skip to content

Commit a5d75e3

Browse files
author
Jerzy Kozera
committed
Simplify the keyword plugin
`.lower()` is now done in `secret_generator` so there is no need to do it twice.
1 parent e3a1667 commit a5d75e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: detect_secrets/plugins/keyword.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def analyze_string(self, string, line_num, filename):
5555
if WHITELIST_REGEX.search(string):
5656
return output
5757

58-
for identifier in self.secret_generator(string.lower()):
58+
for identifier in self.secret_generator(string):
5959
secret = PotentialSecret(
6060
self.secret_type,
6161
filename,

0 commit comments

Comments
 (0)