Skip to content

Commit 120acd3

Browse files
committed
fix: use word boundaries
1 parent 191afe0 commit 120acd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.gitleaks.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,10 @@ secretGroup = 4
536536

537537
[allowlist]
538538
description = "allowlist"
539+
regexTarget = "match"
539540
regexes = [
540-
'''^0x[a-fA-F0-9]{40}$''', # ignore evm public keys
541-
'''219-09-9999''', # global allow lists
541+
'''\b(0x)?[0-9a-fA-F]{40}\b''', # ignore evm public keys
542+
'''219-09-9999''', # global allow lists
542543
'''078-05-1120''',
543544
'''(9[0-9]{2}|666)-\d{2}-\d{4}'''
544545
]

0 commit comments

Comments
 (0)