adding pypi v1 support (#3289)

Co-authored-by: Dylan Ayrey <dxa4481@rit.edu>
This commit is contained in:
dylanTruffle 2024-09-11 21:39:01 -07:00 committed by GitHub
parent d201e54305
commit 029f03e7bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.