Skip to content

Commit 2a966c0

Browse files
committed
fix
1 parent 187f138 commit 2a966c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

main.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ var (
7676
`(?i)_(Password_primary):(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)\\sprimary[=]['\"]([^\\sa-z;'\",\\/._-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45})(?:['"\\s;,\"]|$)`,
7777
`(?i)encryPublicKey\s*=\s*\"([A-Za-z0-9+/=\r\n]+)\"`,
7878
`(?i)decryPrivateKey\s*=\s*\"([A-Za-z0-9+/=\r\n]+)\"`,
79-
`(?i)_(GCP_API_Key2):\\bAIza[0-9A-Za-z_-]{29,45}\\b`,
80-
`(?i)_(Stripe_Secret):\\bsk_(?:live|test)_[0-9A-Za-z]{24,}\\b`,
81-
`(?i)_(Slack_Token_Generic):\\bxox(?:p|b|o|a|r)-[0-9A-Za-z-]{10,}\\b`,
82-
`(?i)_(Private_Key_Begin):^-{5}BEGIN\\sPRIVATE\\sKEY-{5}`,
83-
`(?i)_(DB_URI_With_Creds):\\b(?:postgres|mysql|mariadb|mongodb|redis)://[^:\\s]+:[^@\\s]+@[^/\\s]+`,
84-
`(?i)_(AWS_AKIA):\\bAKIA[0-9A-Z]{16}\\b`,
85-
`(?i)_(GitHub_PAT):\\bghp_[A-Za-z0-9]{30,}\\b`,
79+
`(?i)AIza[0-9A-Za-z_-]{29,45}`,
80+
`(?i)sk_(?:live|test)_[0-9A-Za-z]{24,}`,
81+
`(?i)xox(?:p|b|o|a|r)-[0-9A-Za-z-]{10,}`,
82+
`(?i)-----BEGIN\sPRIVATE\sKEY-----`,
83+
`(?i)(?:postgres|mysql|mariadb|mongodb|redis)://[^:\\s]+:[^@\\s]+@[^/\\s]+`,
84+
`(?i)AKIA[0-9A-Z]{16}`,
85+
`(?i)ghp_[A-Za-z0-9]{30,}`,
8686
}
8787
// Pre-compiled regex patterns for performance
8888
compiledPatterns []*regexp.Regexp

0 commit comments

Comments
 (0)