Skip to content

Commit 1e8bd34

Browse files
committed
Added \|? after the colon to optionally match the pipe character.
1 parent d31f332 commit 1e8bd34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generic/patterns.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ patterns:
8787
pattern: |
8888
[0-9a-f]{32}|[0-9a-f]{40}|[0-9a-f]{64}
8989
start: |
90-
(?:\A|[^a-zA-Z0-9])(?i)[a-z0-9._-]*(?:api|auth[a-z]+|jwt|mysql|db)?[_.-]?(?:pass?(?:wo?r?d|code|phrase)|secret|key|token)([_\s-][a-z0-9]+){0,3}([\s]+As[\s]+String)?[\s]*(={1,3}|:)[\s]*(?:["']|b["'])?
90+
(?:\A|[^a-zA-Z0-9])(?i)[a-z0-9._-]*(?:api|auth[a-z]+|jwt|mysql|db)?[_.-]?(?:pass?(?:wo?r?d|code|phrase)|secret|key|token)([_\s-.][a-z0-9]+){0,3}([\s]+As[\s]+String)?[\s]*(={1,3}|:)[\s]*\|?[\s]*(?:["']|b["'])?
9191
end: |
9292
(\z|[\r\n'"])
9393
test:

0 commit comments

Comments
 (0)