Skip to content

Commit 3acde8c

Browse files
committed
🐛 fix regex capturing group in GENERIC_KEY pattern
1 parent 1f41534 commit 3acde8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/global_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ logging:
6767
regex: "Bearer\\s+[a-zA-Z0-9._\\-]{20,}"
6868
placeholder: "[REDACTED_BEARER_TOKEN]"
6969
- name: "GENERIC_KEY"
70-
regex: "(?i:(api[_-]?key|project[_-]?key|secret[_-]?key)[=:\\s]+['\"]?[a-zA-Z0-9_\\-]{16,}['\"]?)"
70+
regex: "(?i:(?:api[_-]?key|project[_-]?key|secret[_-]?key)[=:\\s]+['\"]?[a-zA-Z0-9_\\-]{16,}['\"]?)"
7171
placeholder: "[REDACTED_KEY]"
7272

7373

0 commit comments

Comments
 (0)