Skip to content

Commit

Permalink
adding pypi v1 support (#3289)
Browse files Browse the repository at this point in the history
Co-authored-by: Dylan Ayrey <[email protected]>
  • Loading branch information
dylanTruffle and dxa4481 authored Sep 12, 2024
1 parent d201e54 commit 029f03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detectors/pypi/pypi.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var _ detectors.Detector = (*Scanner)(nil)
var (
defaultClient = common.SaneHttpClient()
// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.
keyPat = regexp.MustCompile("(pypi-AgEIcHlwaS5vcmcCJ[a-zA-Z0-9-_]{157})")
keyPat = regexp.MustCompile("(pypi-AgEIcHlwaS5vcmcCJ[a-zA-Z0-9-_]{150,157})")
)

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

0 comments on commit 029f03e

Please sign in to comment.