From f772fd8b44d8a5e93d69f2cfe823ceac07a4e348 Mon Sep 17 00:00:00 2001 From: ahrav Date: Wed, 6 Dec 2023 17:04:38 -0800 Subject: [PATCH] update regex (#2184) --- pkg/detectors/huggingface/huggingface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/detectors/huggingface/huggingface.go b/pkg/detectors/huggingface/huggingface.go index a464e0098c1a..1d463e6f549e 100644 --- a/pkg/detectors/huggingface/huggingface.go +++ b/pkg/detectors/huggingface/huggingface.go @@ -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.