From 029f03e7bd5e0828dc8d2c768b5c60167a94cbbb Mon Sep 17 00:00:00 2001 From: dylanTruffle <52866392+dylanTruffle@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:39:01 -0700 Subject: [PATCH] adding pypi v1 support (#3289) Co-authored-by: Dylan Ayrey --- pkg/detectors/pypi/pypi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/detectors/pypi/pypi.go b/pkg/detectors/pypi/pypi.go index 140984963..00376cf84 100644 --- a/pkg/detectors/pypi/pypi.go +++ b/pkg/detectors/pypi/pypi.go @@ -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.