update regex (#2184)

This commit is contained in:
ahrav 2023-12-06 17:04:38 -08:00 committed by GitHub
parent 3167dde8a1
commit f772fd8b44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,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(`\bhf_[a-zA-Z]{34}\b`)
keyPat = regexp.MustCompile(`\bhf_[a-zA-Z0-9]{34}\b`)
)
// Keywords are used for efficiently pre-filtering chunks.