updated detector to include underscore char (#5121)

* updated detector to include underscore char

* improved regex
This commit is contained in:
matt
2026-07-21 18:38:38 -04:00
committed by GitHub
parent 4d82f215b9
commit e74404a774
+1 -1
View File
@@ -21,7 +21,7 @@ var _ detectors.Detector = (*Scanner)(nil)
var (
// more context to be added if this is too generic
secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"square"}) + `(EAAA[a-zA-Z0-9\-\+\=]{60})`)
secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"square"}) + `(EAAA[a-zA-Z0-9\-_+=]{60})`)
)
// Keywords are used for efficiently pre-filtering chunks.