Skip to content

Commit

Permalink
another regex change
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jrose committed Sep 20, 2024
1 parent 8b61823 commit a12e2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snowflake/connector/secret_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SecretDetector(logging.Formatter):
flags=re.IGNORECASE,
)
PRIVATE_KEY_PATTERN = re.compile(
r"-----BEGIN [A-Z ]+PRIVATE KEY-----\\n([a-z0-9/+=\\n]{32,})\\n-----END PRIVATE KEY-----",
r"-----BEGIN [A-Z ]+PRIVATE KEY-----\\n([a-z0-9/+=\\n]{32,})\\n-----END [A-Z ]+PRIVATE KEY-----",
flags=re.MULTILINE | re.IGNORECASE,
)
PRIVATE_KEY_DATA_PATTERN = re.compile(
Expand Down

0 comments on commit a12e2e9

Please sign in to comment.