Skip to content

Commit

Permalink
Update stripe detector regex (#2261)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilPanwar committed Jan 6, 2024
1 parent 5e78ad4 commit 7365dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detectors/stripe/stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var _ detectors.Detector = (*Scanner)(nil)

var (
//doesn't include test keys with "sk_test"
secretKey = regexp.MustCompile(`[rs]k_live_[a-zA-Z0-9]{20,30}`)
secretKey = regexp.MustCompile(`[rs]k_live_[a-zA-Z0-9]{20,247}`)
)

// Keywords are used for efficiently pre-filtering chunks.
Expand Down

0 comments on commit 7365dba

Please sign in to comment.