Skip to content

Commit

Permalink
update regex (#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav authored Dec 7, 2023
1 parent 3167dde commit f772fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detectors/huggingface/huggingface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f772fd8

Please sign in to comment.