Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/secretscanner/secretscanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"math"
"path/filepath"
"regexp"
"strings"
)

// Method identifies which detection technique produced a Match.
Expand Down Expand Up @@ -180,7 +181,7 @@ func (s *Scanner) Scan(content []byte) ([]Match, error) {

// extractKeyValue splits a "KEY=VALUE" line into its key and value, if present.
func extractKeyValue(line string) (key string, value string, ok bool) {
idx := bytes.IndexByte([]byte(line), '=')
idx := strings.IndexByte(line, '=')
if idx < 0 {
return "", "", false
}
Expand Down