Skip to content

Commit d31f332

Browse files
committed
Allow \n instead of just \t for multi line yaml
1 parent 14b0247 commit d31f332

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)([_-][a-z0-9]+){0,3}([ \t]+As[ \t]+String)?[\t ]*(={1,3}|:)[\t ]*(?:["']|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]*(?:["']|b["'])?
9191
end: |
9292
(\z|[\r\n'"])
9393
test:

0 commit comments

Comments
 (0)