Skip to content

Commit

Permalink
update detector regex. (trufflesecurity#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav authored Jun 1, 2023
1 parent 589a794 commit 8b7c508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detectors/float/float.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
client = common.SaneHttpClient()

// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"float"}) + `\b([a-zA-Z0-9-._+=/]{59,60})\b`)
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"float"}) + `\b([a-f0-9]{16}[A-Za-z0-9+/]{42,43}=)`)
)

// Keywords are used for efficiently pre-filtering chunks.
Expand Down

0 comments on commit 8b7c508

Please sign in to comment.